Hello everyone .. in the game I'm developing I wanted that when the enemies, who come down from the top, when they come out of the screen, the score decreased by one point .. but this does not happen .. Why??? .. I attach the file
dropbox.com/s/5sw86xlx544jo3z/Uno.capx
Because you create the enemy at Y=200. Condition "Enemy.Y<0" is never true.
It's also easier to subtract 1 point from score in event #5 where the enemy is created.
sorry... but how do you subtract a point from the # 5 event ???
How do you currently subtract 1 point? Do the same but in event #5 :)
I'm stupid ... it does not work
I put the link
dropbox.com/s/ukv00adbtz0lhbz/Uno.capx
It does work, you just need to update the text on the screen (set text to "Punti="&Punti), you currently doing this only once on start of the layout.
Also, you don't need event #7 anymore
Develop games in your browser. Powerful, performant & highly capable.
I want to cry ... it does not work
Oh, man, you mean when you don't kill the enemy and it disappears below the bottom of the screen - then you want to subtract 1 point? I'm sorry, I misunderstood your, that "Enemy.Y<0" condition confused me.
Do this:
it works ;-) I really wanted this, I adapted it to my needs ... thank you very much.
sorry if I did not understand from the beginning