19Fermer21
tcdevLe 13/11/2022 à 01:59
Tigerskunk (./19) :
Not sure what you are meaning exactly with "wraparound properties".

My code simply resets the x position of the sprite that scrolled out of screen and its tile pointer... wink
If you chain enough sprites together, they wrap around from one border to the other, and you can simply keep moving the first sprite, wrapping its coordinate likewise.

Anyway, sounds like I'm doing similar to you. When a sprite scrolls off-screen, I disable it, unchain the next sprite, and enable and chain the new sprite scrolling on from the other end.

What I'm actually doing now (twice as many sprites as are shown on-screen) is a bit different to what I had initially, when I wrote that message, (just enough sprites to show on-screen) but that's for reasons that make more sense to Xevious specifically.