Endless Runner Backgrounds.
I am working on a game with a scrolling background effect. I am trying to make it operate in a similar fashion to an endless runner. The problem I have is that the max scene size is 2048 px. I have tried two different methods. One where the background scrolls at a low rate of speed, which I do not like, but it allows me to control the length of time the player has in the level really well. In the other, the player controls the camera and the rate of speed the background moves in the previous method is too slow and forces me to up the speed of the player to get the appearance i need.(The second option also cleans up issues I have had with objects not triggering and spawning correctly farther down the level) I would really like to use the second option, but the play time on the level is way too short. I have read the tutorial and watch countless videos on endless runners as I believe this is the methodology I need to follow for the effect I am after, but none of them explain how to get such a long background. They only seem to explain how to keep platforms spawning. Any help would be greatly appreciated.
Comments
Simply get a background that you can TILE, this way, it can be as LONG as you need!
By that are you meaning, create a background that can be spliced to itself and wrap the axis to keep it coming?
Yes.
Try this video tutorial I think that what you need
No, I wasn't talking about Wrapping at all, but in fact, simply taking your background, setting it to TILE horizontally, then stretch the crap out of it as long as you need. Seeing as it will be tiling itself, there are no limits to how big it can be.
You could probably use one of these methods for what you need as well:
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thank you all for your time and help. Problem solved!