I have a problem, in this game when the player charecter (controlled with arrow keys) contacts enimies, they are supposed to lose health (health is controlled by a gobal variable). When the player loses all their health, they are set back to the begining and after a short pause the health is reset and the player can begin playing again.
All of the above works fine, but after the first time the player 'dies' on each attempt afterwards (without closing and re-opening) the player has to run into the ennimies two times before damage starts being taken as useal.
I have uploaded a copy of the (incompleate) game here:
www3.zippyshare.com/v/92820793/file.html
I am sorry for any spelling mistakes. Thankyou for any help you can give.