Fermer2
CosmicRLe 21/08/2021 à 17:44
Hi guys I am wondering what the best (fastest) way to horizontally scroll through a tile map is?

I did this once before : I had 21 sprites side by side and every time one went off the left-side of the screen I would move it to the right side of the screen. It worked fine but it wasn't very efficient because I would move each individual sprite to the left one by one.

I have thought about joining sprites (using the sticky bit) together in 2 groups and managing these. Seems a little complicated though having to unstick and re-stick them. I want to know if there is a simpler way I am missing?

I also had an idea of using the fact that the display area automatically wraps round after 512 pixels (I'm sure it does this). But it seems like I would have to use extra sprites to fill up the 512 width to do this or would I?

Thank you I appreciate any help. I am not asking for code Just for the best way to do it