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
22
G
241
Posts: 3,734
Reputation: 134,494

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
25
S
14
G
136
Posts: 876
Reputation: 71,005

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
22
G
241
Posts: 3,734
Reputation: 134,494


Return to How do I....?

Who is online

Users browsing this forum: Anna Nehves Br, divsyntax, volumetv and 15 guests