Windows How Can I make Auto Background Change?


Dark Unicorn Gamer

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..??

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 ??


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: