How to make a life bar in the form of an arc?

Get help using Construct 2

Post » Sun Aug 24, 2014 3:44 am

How to make a life bar in the form of an arc?I want to make life can not in the form of strips .a in a semicircle, as it can be implemented?
B
16
S
6
G
1
Posts: 46
Reputation: 2,778

Post » Sun Aug 24, 2014 4:40 am

@GROM,

this is not very 'elegant' but you could use the layered approach; put your semi circle 'strip' on top, with another beneath that which will rotate into view of the 'strip'. it would probably involve a mask or something of that sort.

sorry i cannot be more specific. i just saw the solution in my head when i read your question. someone the forums may know how to implement what i suggested.

good luck...
B
81
S
32
G
23
Posts: 1,053
Reputation: 35,965

Post » Sun Aug 24, 2014 7:09 am

You could ofcourse just use a sprite with animationframes for this or you could use the approach above, using another sprite as a mask and rotating it as needed..

the second solution would involve using blendmodes, a great example of which can be found in the new project dialog..
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 » Sun Aug 24, 2014 10:09 am

At the expense of a good mask variant.animatsiya not poydet.zachem extra sprites ... maybe there is a formula or something like that then? And what blendmode ???
B
16
S
6
G
1
Posts: 46
Reputation: 2,778

Post » Sun Aug 24, 2014 10:38 am

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

This thread may be of interest (the first solution I would not recommand,)
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Sun Aug 24, 2014 10:51 am

Thank you very much!)
B
16
S
6
G
1
Posts: 46
Reputation: 2,778


Return to How do I....?

Who is online

Users browsing this forum: jaytrott86, Yahoo [Bot] and 7 guests