How to make health bar follow the player?

Get help using Construct 2

Post » Sat Oct 03, 2015 2:32 pm

How to make health bar follow the player in the right up corner?
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 133
Reputation: 3,070

Post » Sat Oct 03, 2015 2:37 pm

Put the healthbar on a different layer with paralax set to 0,0 ?
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 » Sat Oct 03, 2015 3:41 pm

Yeah I did but for some reason nothing changed
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 133
Reputation: 3,070

Post » Sat Oct 03, 2015 3:57 pm

DeRock wrote:Yeah I did but for some reason nothing changed


Putting it in the right upper corner of a paralax 0,0 layer should work, unless you have actions applied to your healthbar that set it's position..
If you use any kind of scaling, you might also consider adding the anchor behaviour..
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 » Sat Oct 03, 2015 5:51 pm

I haven't applied any actions on it and I did it all right, but it doesn't even appear when I start the game and it's set to visible...
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 133
Reputation: 3,070

Post » Sat Oct 03, 2015 9:06 pm

DeRock wrote:I haven't applied any actions on it and I did it all right, but it doesn't even appear when I start the game and it's set to visible...


Ah.. so you probably haven't put it inside the dotted area..
Put it in the top right of your dotted rectangle in the editor and all will work..
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 » Sat Oct 03, 2015 10:59 pm

double check its on the layer GUI as well, sometimes its an easy mistake to make
B
9
S
3
Posts: 113
Reputation: 1,009

Post » Sun Oct 04, 2015 10:59 am

Many thanks guys
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 133
Reputation: 3,070


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 56 guests