I'm attempting to wrap a map horizontally - that is, as the player walks to the "edge" of the right-hand side of the map, the left hand side of the map appears, and the player continues into that side of the map, and vice versa of the player is walking to the left edge of the map. The player object is the parent of the view, and I've tried this global code:
if (x > 320) x-=320;
(My screen width being 320).
This doesn't appear to work, and I'm really puzzled as to how to resolve this. Any suggestions as to how to create map wrapping would be hugely appreciated. Many thanks.