Check the state of every instance

Get help using Construct 2

Post » Wed Nov 13, 2013 1:36 pm

How can I check that every instance of a sprite is invisible?
Or,
How can I check if every instance of a sprite is destroyed?
B
4
Posts: 14
Reputation: 230

Post » Wed Nov 13, 2013 2:03 pm

for each sprite - sprite is invisible add 1 to variable.

And to see if they are all destroyed
system compare two values - sprite.count = 0

so if sprite.count is the same as the variable, all sprites are invisible.LittleStain2013-11-13 14:04:35
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Nov 13, 2013 2:24 pm

All sprites destroyed:


All sprites invisible:
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,630


Return to How do I....?

Who is online

Users browsing this forum: bluesun66 and 8 guests