So, I’m making a bit of code to scroll an image and make it loop back on itself after it reaches a certain point. My current version… mostly works, with the exception that if the offset is greater than the width of the image, it doesn’t work. I need it to loop back on itself even if the offset value is greater than the width of the image.
Screenshots of code:
Project:
(As you can see, the patterns will loop in both directions as intended. But if you change either one of the index-from-0-to-15 to repeat more or change the multiplier, you’ll find it doesn’t work.)