need a little help with Lerp

Get help using Construct 2

Post » Fri Oct 27, 2017 7:17 am

I am using lerp for the health bar so that when the player upgrades their health, the amt of health can increase but the health bar width will stay the same. What happens though is that when the player gets damaged the health bar width is increasing instead of decreasing. Here is some screenshots of what I have setup for the lerp, using maxHealth for the global variable that will change with the upgrades and inst_maxHealth for the instance variable to transfer the value to and have another instance variable inst_health that is set to the health bar width.

Image

Image

Image
B
14
S
5
Posts: 59
Reputation: 1,122

Post » Fri Oct 27, 2017 7:22 am

never mind i see my error, i had the variables in wrong order for the every tick, lol i had been looking over those three event lines for a while don't know why that didn't pop in sooner
B
14
S
5
Posts: 59
Reputation: 1,122


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 56 guests