Try this:
Update:
Post your CAPX for the best answer.
Just have an event that counts the number of sprites:
red.Count + spBall.Count + yellow.Count = 0
and display your message.
Families could do it with family.Count = 0, if all balls are in the family.
Two things:
1) Use On animation finished to switch back, as 0.5 sec isn't enough time for it to play.
2) You only set "walk" on Key pressed, so after the 'attack' plays, the animation is still on 'attack'. I've moved 'walk' to Key down, instead.
Buttons are actually drawn by the browser, which can override C2s values. They are good for quick and easy button objects, but if you need precise alignment, you'll need to do your own buttons as a Sprite or 9-patch.
There is a back-door for this now. If you edit the Sprite plugin, and look for 'Draw collision poly (for debug)', you'll see the code is commented out. Remove the comments, and turn off WebGL in your project. The collision poly is now drawn.
Be sure to revert back before publishing.
If you only have three Textboxes in total, you can actually address each directly. If there are more, you need to pick each, store the value to compare, and then test the three values. Here a sample using the text itself.
Develop games in your browser. Powerful, performant & highly capable.
them thar chompers!
The dentures were
Use System.choose().
var1 = choose(var2,var3)
Member since 28 May, 2012