Health Bar Problem

Get help using Construct 2

Post » Wed Nov 11, 2015 9:10 pm

How do I make my Player lose health from the health bar so when the health bar is empty the player will get destroyed and then transfer to the Start Layout (I have a game layout and a start layout) ??? :| :| :|
B
4
Posts: 10
Reputation: 226

Post » Wed Nov 11, 2015 10:00 pm

In what way have you set up your healthbar?
Usually a variable will control the width of the bar and this variable can be used to check if the player has any health left..
You could ofcourse also check if the healthbar.width is lower than a certain amount..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 12, 2015 3:28 pm

Thanks for your reply.
I tried to use the simple kind of Health Bar . But it can't exactly work for me. :|
The reason is this "look at the photo"
Image
Please reply, I really need help :cry:
B
4
Posts: 10
Reputation: 226

Post » Thu Nov 12, 2015 3:35 pm

I don't understand what you are trying to do..

When an asteroid hits the ship you destroy the ship, wait 3 seconds and go to another layout..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 12, 2015 3:37 pm

I guess you want to check ship.health < 0 before destroying the ship..
If so, add that as a subevent and put the destroy action in there as well as the wait and goto layout..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 12, 2015 3:47 pm

Really thanks but my last problem is : How I add a subevent (sorry if the question is silly).
B
4
Posts: 10
Reputation: 226

Post » Thu Nov 12, 2015 3:49 pm

right click an event, add subevent..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 12, 2015 3:51 pm

Awesome thanks man :D You really helped me :D :D
B
4
Posts: 10
Reputation: 226

Post » Thu Nov 12, 2015 4:12 pm

Sorry can you help me :| ? I am really confused :(
B
4
Posts: 10
Reputation: 226

Post » Thu Nov 12, 2015 4:14 pm

Well, if you have a question, I could give you an answer..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: bluesun66, HenryPK, Malhog, plinkie, Syazanie Amirin and 1 guest