Thank you, that was driving me bananas.
> spacex = (spacex + 1) % (Game.SpriteWidth[946] - Game.SpriteWidth[948]);
This works also, thanks, just had to add a repeated section to the end of the graphic so that restarts are seamless. I'm familiar with mod but I rarely think to use it like this where you're making use of the return of the first operator if the 2nd one is bigger.
> spacex = (spacex + 1) % (Game.SpriteWidth[946] - Game.SpriteWidth[948]);
This works also, thanks, just had to add a repeated section to the end of the graphic so that restarts are seamless. I'm familiar with mod but I rarely think to use it like this where you're making use of the return of the first operator if the 2nd one is bigger.