Help on Health bar

Get help using Construct 2

Post » Sat Apr 13, 2013 7:40 pm

Ok atm i have Number for hp is 3 and when collide with enemy -1 hp. When Hp=0 Then reset the layout.

Problem is Construct is remembering the event collide (enemy has movement and is pushing you there fore The variable get decrease by -1. When IT shouldnt upon reset.

I have tried using wait command but im afraid it doesnt stop the even from triggering and i have thought about the trigger once but Construct isnt letting me Put it together with Trigger once and Collision. I have even tried Doing trigger once with subevent Collision now it isnt even triggering the event at all.
B
7
S
2
G
3
Posts: 58
Reputation: 2,284

Post » Wed Apr 17, 2013 5:59 pm

Hi,

I don't really understand could you send a Capx example?
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Wed Apr 17, 2013 6:43 pm

In the collision event could you not also add a condition to check that the hp is greater than 0. And only subtract 1 if it is?
B
11
S
2
G
3
Posts: 95
Reputation: 3,028


Return to How do I....?

Who is online

Users browsing this forum: austinblackbelt, Google [Bot], Yahoo [Bot] and 32 guests