Hey guys,
Let's say I have a sprite that I want to "ease" to a target
What I can't get my head around is how to do this while beingCode:sprite.x += ( target.x -sprite.x ) *0.9;
frame-independent. This will obviously not work since it will
change the fraction
Help?!Code:sprite.x += ( target.x -sprite.x ) *0.9 *deltaTime;![]()




Reply With Quote