• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows How Can I make Auto Background Change?

D

Dark Unicorn Gamer

Guest
hello! i am trying to make a running game. In that game i want to change the background after every 40 seconds like in game like jetpack joyride. how can i ? any ideas..??

Also,
A location in my game contains 4 backgrounds which are parallex.

i want to change the location(backgrounds) every 40 seconds what should i do ??
 
T

tserek

Guest
The trick of scrolling game is the player doesn't move, other objects and backgrounds move. Each section is for example 3000 pixels wide, when the first section reach a certain point you create another section next to it. This way you can make an infinite runner if you will. The parallax background transition can be done while the background is hidden, like in a section change area. This can be done with alarms and arrays for example.
 
Last edited by a moderator:
Top