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?
Do: Compare Variable, then put Lives Variable less our equal to zero. Then for the actions, just put the game over actions.
Develop games in your browser. Powerful, performant & highly capable.
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