I'm trying to figure out a way to lerp an object in the opposite direction of the player a couple hundred pixels, but can't seem to figure out if it's possible.
Currently I've created instance variables on the lerping sprite as SpriteX & SpriteY, and also an AngleToPlayer isntance variable as angle(Player.X, Player.Y, Sprite.X, Sprite.Y), but I can't figure out how to set the spritex & y instance variables -/+ 200 pixels based on the characters position.
In lamen's terms, I'm trying to make it so when you kill an enemy, a coin spawns on them and slowly moves away from your current position stopping in 100-200 pixels.
Any help would be greatly appreciated.
Thanks!