How do I make this life bar smaller?

Get help using Construct 2

Post » Fri Feb 26, 2016 12:28 am

I created a start button. You click it and it shows you two cards. The idea is that I click on my player card and it makes the monster card's life bar smaller. It works only once haha, what can I do? I don't know how to post an image. My event is ''on left button clicked on sprite 3'' and my action ''lifeBar set width to -80''
B
3
Posts: 1
Reputation: 177

Post » Fri Feb 26, 2016 4:50 am

I am not quite sure what you are doing but it sound like it should work on left click set width -80 then again and again from how you have written it above. until bar starts to grow the other way or maybe if bar width less then 80 it might not get smaller. So you might need a bar that is 80 x the amount of times you want to reduce it.
B
29
S
13
G
10
Posts: 355
Reputation: 8,317

Post » Fri Feb 26, 2016 12:17 pm

If you want to set the bar to 80 less than what it was instead of just being -80 you will want to go:

lifebar set width to:
lifebar.width-80
B
12
S
4
G
1
Posts: 137
Reputation: 1,519


Return to How do I....?

Who is online

Users browsing this forum: evillair and 11 guests