Construct2Live Class - Health Bar issue

Get help using Construct 2

Post » Fri Jul 12, 2013 12:17 am

Hello,

I started with the Construct2Live Class and at the moment I'm stuck at 'Week #3 - Enemies and Animation - 6 / 11'.
I'm suppose to have a working health bar now but eventhough I watched and listened for a couple of times and compared my eventsheet with the one Yann is working on I can't get it to work.

Health decreases when you hit an enemy as I can see by the numbers in the textbox but the red bar isn't changing. Also I should respawn without a problem and not get stuck because we just fixed that problem in the class.

Can somebody please have a look? It's frustrating because I want to continue and learn more. It probably is something I'm overlooking.
I know I can find a lot of healthbar tutorials but I want to know how to fix this.

https://dl.dropboxusercontent.com/u/49037959/healthbar.capx

Thanks in advance! :)

P.S. I have 2 kinds of purple enemies, only one 'hurts'.
Oh, and here's the class on YouTube http://www.youtube.com/watch?v=roUCmm-TyFs About healthbar at 4:40!Robin Sommer2013-07-12 00:20:47
B
83
S
20
G
5
Posts: 175
Reputation: 7,631

Post » Fri Jul 12, 2013 4:22 am

When the enemy hit the player you need to subtract from HP and not HPMax.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,801

Post » Fri Jul 12, 2013 5:36 pm

Thanks! I'm gonna try that now :)

--

It works! :D Can't believe I did not see that, I think I was too tired from following the classes all day.. Thanks again!Robin Sommer2013-07-12 17:50:04
B
83
S
20
G
5
Posts: 175
Reputation: 7,631


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], piranha305, yme and 7 guests