Game Development Community

Implementing multi-directional, parallax scrolling

by David Downer · in Torque Game Builder · 05/11/2012 (3:40 am) · 1 replies

I've made it through the stock tutorials and have decided to start experimenting on my own. However, due to a severe lack of documentation, I'm finding it pretty difficult.

I'm interested in creating a top-down, 'space scroller' that is not limited to one axis of scrolling, but rather scrolls the starfield backdrops (4-5 maybe: couple layers of stars, couple layers of nebula / fog, layers of debris) based on the direction and speed of a player ship. Based only on the tutorial information (which is all I have) I see two possible ways to try to accomplish this:

1.) create a 'tile' map that really doesn't have any tiles, create a ship with a very small world limit (to keep the ship in the middle of the screen), lock the camera to the ship and have the backdrop(s?) scroll by much like the ninja platformer? Not sure how I would accomplish the parallax layering this way though??

2.) use scrollers - not sure this would work as they seem to be designed for one direction only?

How would you implement this?

#1
05/11/2012 (6:21 am)
Scrollers are not designed for one direction only. The example art implies that, but you can make them scroll in any direction fluidly. That would be where I would start.