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"?
Sprite.Count=0 -> go to layout
Develop games in your browser. Powerful, performant & highly capable.
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.
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
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.