interaction and iterate

orbi72's picture

How can I isolate the enabling of a iterated sprite with the interaction patch? In other words; when one of the iterated sprites is clicked I want the others to disappear. (Preferably fading). Tried with the logic patch connected to the iteration variables. No succes yet. Could anyone push me in the right direction? Thanks!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Achim Breidenbach's picture
Re: interaction and iterate

I suggest to do the hit testing on each sprite outside the iterator in a Java (or LUA) patch because I think this is something you won't do in QC natively. The Java Script can output a structure containing "drawing commands" (including the coordinates and sizes for each sprite), handing off to the iterator. Just my 2 cents.