MacGregory
Member
how does the lerp function work? I want HP to fall smoothly with damage, and not abruptly in one frame! right now I wrote it like this health = health_max health = lerp (health, health_max, 0.15) at the enemy's Step. HP fall smoothly, but immediately recover to the previous level, in which I am wrong, please tell me.