How do I make a curved health bar?

Just started using Construct 2? Post your questions here

Post » Sat Sep 10, 2016 6:57 pm

I know how to make a rectangle health bar. But I am creating a game that involves player chips that they move across the board. They move across and when they are able to attack, once done there health depletes. I Know this doesn't make sense right know, I wish I could show an image but I don't have one. There chip is a circle with another circle inside of it closer to the outside, so it kinda looks like a halo or ring. If you cut it in half, you get 2 shapes like a rainbow. I want one half (or one rainbow) to be an health bar so it fits along the chips circle outline. Does anyone know how to do this, or do I need to visualize it more?
I don't think I could ever stab someone, I mean, let's be honest. I can barely get the straw into a Capri Sun.
B
26
S
10
G
7
Posts: 91
Reputation: 6,420

Post » Sun Sep 11, 2016 3:36 am

So kind of like the health bar used in N64 Goldeneye? How is this different from the logic of a rectangular health bar? Wouldn't it be the same logic where based on the amount of health the graphic changes so you just make all of the necessary graphics and trigger them at certain amounts of health? Or am I missing something? Maybe...but I would just make the different stages of the health bar ring as animation frames and set each frame based on the relevant health or status of the player, which is I assume how your rectangular one was made?
B
47
S
17
G
81
Posts: 2,223
Reputation: 48,093

Post » Sun Sep 11, 2016 5:58 am

If I understood right you can do it in the same way as it was rectangle and use a mask to make things outside the shape invisible.
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Sun Sep 11, 2016 7:30 am

how-do-i-create-a-circular-cooldown-display_t108742?&hilit=Circular+health

May or May not be related as I'm unsure what the OP wants exactly
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Sun Sep 11, 2016 10:01 pm

@plinkie @kossglobal @Aphrodite thanks for your suggestions I'll work with these comments
I don't think I could ever stab someone, I mean, let's be honest. I can barely get the straw into a Capri Sun.
B
26
S
10
G
7
Posts: 91
Reputation: 6,420

Post » Sun Sep 18, 2016 7:41 pm

@Aphrodite

Just got to say, this is a FANTASTIC solution. Never thought about that
B
9
S
3
Posts: 113
Reputation: 1,009


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 6 guests