how to I add life easy way

Get help using Construct 2

Post » Sun Aug 26, 2012 6:23 pm

So how do I do it? Ty
B
10
S
3
G
6
Posts: 33
Reputation: 4,285

Post » Sun Aug 26, 2012 6:32 pm

I have a sample here somewhere, let me find it (strange sounds behind the scene)..

Here it's: http://www.scirra.com/forum/make-a-power-bar-solved_topic55529_post346560.html?KW=life+bar#346560

and

http://www.scirra.com/forum/monster-problem-and-going-to-the-next-layout_topic55686.html?KW=life+bar

xD

You can make the life doing a instance variable on the object, and then, when a condition is meet (like a punch overlapping the object), make it add -1 of life.TELLES08082012-08-26 18:33:35
ImageImageImageImageImageImage
B
93
S
19
G
12
Posts: 1,209
Reputation: 18,357

Post » Sun Aug 26, 2012 10:45 pm

Sprite1: On collision with Sprite2 -> Subtract 1

Sprite overlapping the object will constantly subtract 1 every tick.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Tue Aug 28, 2012 10:38 am

any capx example? thank you
B
10
S
3
G
6
Posts: 33
Reputation: 4,285

Post » Tue Aug 28, 2012 11:52 am

health bar

One way to do this.
Move blue square with mouse on green square to hurt him.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Tue Aug 28, 2012 12:05 pm

Awesome, now i have an idea. Thank you to @TELLES0808 and @shinkan!
B
10
S
3
G
6
Posts: 33
Reputation: 4,285


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests