How can I make a background scroll
by Shakey · in Torque Game Builder · 02/09/2010 (2:23 pm) · 5 replies
Hi Can anyone tell me how I can make a background scroll like this, making it look like it is scrolling in on the Z axis
#2
But wouldn't the background image used for the ground need to be tilted to give it a since of depth
02/09/2010 (6:31 pm)
ThanksBut wouldn't the background image used for the ground need to be tilted to give it a since of depth
#3
02/09/2010 (7:49 pm)
you need to draw the background tilted and have 2 backgrounds, constantly switching places with each other and moving down
#4
02/09/2010 (10:10 pm)
This looks similar to the "mode 7" stuff that comes with the TGB kart kit, I bet that kit could solve this for you. Its in the Add-Ons/Genre Kits section.
#5
02/10/2010 (4:29 am)
I thought you meant the far background, not the ground itself. Yeah, this is a lot like the mode 7 stuff that the Kart Kit includes.
Associate William Lee Sims
Machine Code Games
Make a background image and name it something like "Background". When your player moves, set the background, too.
function Player::moveLeft( %this ) { Player.setLinearVelocityX( -5 ); Background.setLinearVelocityX( -2.5 ); // As an example }