need a little help with Lerp

0 favourites
  • 2 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)