How do I set up a chain consequence

Get help using Construct 2

Post » Tue Jun 23, 2015 11:16 pm

I'm not sure if the title accurately describes the problem, but nonetheless, I need help. How would I set up an event that states "if all of these sprites have been destroyed, send the player to the next layout"?
B
3
Posts: 9
Reputation: 183

Post » Tue Jun 23, 2015 11:35 pm

Sprite.Count=0 -> go to layout
ImageImageImage
B
71
S
21
G
221
Posts: 3,650
Reputation: 124,229

Post » Tue Jun 23, 2015 11:58 pm

See, the problem with that is, besides the unclarity of how to execute that, it only applies to a certain number of the sprites I'm using. Not all of my sprites are being destroyed.
B
3
Posts: 9
Reputation: 183

Post » Wed Jun 24, 2015 12:10 am

just add a count value of the sprite you want in var

on my_sprite destroy : add 1 to my var

system compare var myvar= (the number you want) : go to layout_X
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Wed Jun 24, 2015 12:56 am

With families, you could do this in one line. It still might be easier to check all relevant sprite.count values rather than added the extra code to do a counter to do the same thing.
ImageImageImage
B
71
S
21
G
221
Posts: 3,650
Reputation: 124,229


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests