Game wont stop when lives are over and lives goes to negative values..I want game over text after finishing lives game should be stop.how to deal with this problem?
Do you use instance variables or global variables for the health?
Develop games in your browser. Powerful, performant & highly capable.
Do: Compare Variable, then put Lives Variable less our equal to zero. Then for the actions, just put the game over actions.
are you using if life is 1.(less than or equal to) or 2.(equal to) It might be that your using the second one