I see you're trying to animate your sprite manually using spset. Not a terrible idea in general, but it would probably be better for you to learn how to use the proper sprite animation command SPANIM. It'll work out easier and more efficient in the long run...