Wanted to when they explode all the balls of the same color leave the screen "You Win"
For example I have 6 red balls, and every two colliding balls are destroyed, when all the balls are destroyed appears text "you won"
try putting set value and comparable variable and did not work well, Any solution?
https://www.dropbox.com/s/mt92rduq2ohyy1z/test.capx
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.
You can do so in the example above? I try to do, but I get the error
Update:
Develop games in your browser. Powerful, performant & highly capable.
I have a screen where it says score and semitransparent, but I get the black background and few fps. Why? <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">
https://www.dropbox.com/s/r29w6wel88o7pt0/testtt.capx
Because you are constantly Creating the score, every tick! Add Trigger once.
Had another method, but I was the same and was the trigger once ...
Thanks for the help