Move a sprite using a linear tween function