How do I create a health icon?

Get help using Construct 2

Post » Thu Mar 17, 2016 2:55 am

Trying to create a "health icon" that changes frames upon damage taken.

Any ideas?
B
24
S
7
G
3
Posts: 122
Reputation: 3,047

Post » Thu Mar 17, 2016 4:50 am

Make a sprite with multiple frames.
Frame 0: make it have a sprite with 3 hearts(you can make the sprite look how ever u want but just make sure the player can see the change in it as the take damage)
frame 1: 2 hearts
frame 2: 3 hearts
When playerhp=3 set animation frame to 2
When playerhp=2 set frame to 1
When playerhp=1 set frame to 0
when playerhp=0 destroy player/end game/respwan( what ever your end game is set to be)
B
29
S
6
G
1
Posts: 93
Reputation: 3,020

Post » Fri Mar 18, 2016 3:34 pm

Thanks, I'll try it tonight
B
24
S
7
G
3
Posts: 122
Reputation: 3,047

Post » Tue Mar 22, 2016 3:55 am

It worked, thank you so much!
B
24
S
7
G
3
Posts: 122
Reputation: 3,047


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, Malhog, plinkie, R0J0hound, Syazanie Amirin and 9 guests