Have a health bar "move with you" as you move

Get help using Construct 2

Post » Thu Jan 24, 2013 2:36 am

Sounds simple, I've been at it for quite awhile (like all the other things i been trying to do lol)
Anyways, I need a healthbar to follow my character throughout the game with the scoreboard and some text..Even when he is going down the next level of the layout..

for example, he falls onto a platform (the healthbar does not follow) and i want it to.
Anyone able to figure this out?? :P
B
1
Posts: 3
Reputation: 281

Post » Thu Jan 24, 2013 2:40 am

Have you tried putting the healthbar on a separate layer and set that layer's parallax to 0,0 ?
B
14
S
6
G
2
Posts: 136
Reputation: 3,210

Post » Thu Jan 24, 2013 2:50 am

ohh I've heard of that before. The thing is i dont know what parallax is is that just the x and y axis??
or how do i find this parallax.
B
1
Posts: 3
Reputation: 281

Post » Thu Jan 24, 2013 2:52 am

woahh it works, thanks bro :)
B
1
Posts: 3
Reputation: 281

Post » Tue Jan 29, 2013 6:49 am

@wretchedshark - THANK YOU! LOL I was trying to figure that out, myself. I knew it had SOMETHING to do with the parallax...go figure I didn't THINK to actually test changing the values. Thank you again!
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
112
S
20
G
8
Posts: 741
Reputation: 13,636

Post » Tue Jan 29, 2013 8:22 am

Really? I've just made an image point in the character above his head named "healthbar" and then made an event Every Tick -> Set <the health bar image> position to another object -> Character: Image point "healthbar".

Then no matter how you edit the healthbar it'll stay where it is, as long as the origin is at the same point in each animation/frame.
B
13
S
5
G
2
Posts: 64
Reputation: 3,012


Return to How do I....?

Who is online

Users browsing this forum: flemmig, Matthew de, semaso, Skebab, Virpoja and 20 guests