That code is not tested, but I am almost certain that it will work Using SPANIM, some people use -1 instead of 1 to define the initial value, or you don't need an initial value at all, and the sprite will move to that value from wherever it currently is.