View Single Post
Detect click on object in array?
Junior Member
Status: Offline
Posts: 6
Join Date: Oct 2011
Location: UK
Default Detect click on object in array? - 10-31-2011, 03:22 PM

In Alice2.2, after creating an array or list of "bad guy" objects, is there a way to detect mouse clicks over a member of the array rather than having to add a "when mouse is clicked on.." event by hand for every "bad guy" object?

I'd like to be able to have things coming towards the camera and be able to bash them back by clicking them with the mouse, and then be able to add more as time goes on.

I can do this in Alice3 (though not add more objects on the fly- but there's ways round that) but the lack of documentation and examples prompted me to drop to 2.2 where I can't seem to do any event binding via a forAll loop and fall at the first hurdle.
Reply With Quote