Hi everyone, I'm really stuck on this again. I've decided that I do actually want the lerp type of movement, but I can't get it to work. Basically, when the player collides with an object I want the object to push the player back. So I'm trying to say that the player should move Player.X-200.
I would think that I should just do...
Player > set x > lerp(player.x, player.x-200, 0.5)
...with the understand that I can play around with the 0.5 to make it faster or slow, depending on how it looks (I understand that I'll eventually want to use delta time to make it frame rate independent, but I just want to understand the basics before I dive in to that).
However, when I do this the character teleports to player.x-200 instead of moving slowly.
Can anyone explain what I'm doing wrong here?
Thanks in advance for your patience
Matt