[QUOTE=theubie] If you have the tile numbers in an array you can push the first element to the back, then pop the first element.
[1,2,3,4,5] - Starting array
[1,2,3,4,5,1] - Push first element to the back
[2,3,4,5,1] - pop the first element from the front
Push the last element to the front and pop the last element to go the other way.[/QUOTE]
Thanks theubie. I've been doing tutorials that relate to platformers. It makes sense to have a sprite for the main character, each enemy, etc. With what I'm trying to make now though, how would I add conditions to tiles that look the same? I could add them separately and give them different names, but it seems there must be a better way. Do you see what I mean?