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!

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.