soundtrigger.capx
Change the Timer=12 to 62.
Do 'Set animation' first, then 'Set frame'.
It's actually a 'case' issue. You have "Y" in the For-loop, but "y" in the loopindex(). Changing the capital to lower-case fixes the issue. The one that worked, seems to be a fluke.
If you search on your own topic name you will find multiple answers.
Events 2 & 3 don't do anything. You are Waiting 1 second, which is exactly what you told it to do with 'Set Wait to 1'.
Add 'Trigger once while true' to events 3 & 4.
Develop games in your browser. Powerful, performant & highly capable.
tutorial
Your logic is wrong: fix
You need to only search in 'Y', not 'XY'.
have a look here
I'd say you are abusing 'Trigger once'. Looks like you should be using 'On start of layout' for your 'For each' events, and set an instance variable indicating that green is dying and check that rather than Trigger once.
You should post a link to your CAPX. It should work.
Make a fourth layout with all of your dynamic sprites in it. They don't need to be on any other layout at design time.
Member since 28 May, 2012