Problem with enemies and health

Get help using Construct 2

Post » Sun Jun 10, 2012 5:56 pm

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:
http://www3.zippyshare.com/v/92820793/file.html

I am sorry for any spelling mistakes. Thankyou for any help you can give.
B
3
Posts: 7
Reputation: 289

Post » Sun Jun 10, 2012 7:52 pm

In event 8, add "System -> Trigger once while true" as a condition beside your "Text3: Is visible" condition.Nimtrix2012-06-10 19:52:32
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Mon Jun 11, 2012 5:43 pm

Thank-you so much, this worked perfectly.
B
3
Posts: 7
Reputation: 289


Return to How do I....?

Who is online

Users browsing this forum: dadanwsd, newt and 26 guests