Game Development Community

Wrapping Levels in 2D

by Andrew Deters · in iTorque 2D · 08/15/2012 (1:40 pm) · 2 replies

I want to know how to create a level that can endlessly wrap around on its self, similar to the game Rampage World Tour. The concept is that the level is side scrolling around the outside of a 3D cylinder. And the camera would be able to move back and forth around the level. If anyone has an idea of where I can go to start getting that to work that would be a big help.

#1
08/15/2012 (3:54 pm)
As a thought exercise and not an explicit set of instructions how to do this consider it this way.

If your player character is always at position 0,0 and every time you press left or right the following happens:

  1. Every other object moves in the opposite direction
  2. Your background also scrolls in the opposite direction

There are some exceptions and some special changes that you'd need to make to make the camera believable, but that is the "gist" of it.
#2
08/20/2012 (12:48 pm)
I have found one article that said I can use tile layers and just have them repeat as a way to make the level wrap. I am just not sure if I destroy a tile if it would be gone on all repeated ones of itself.