Endless Runner Background Issue
I have created my far background, but can't get it to wrap. I have it slowly scrolling but when it gets to the end of the image the background just goes black. My actor is constrained to only move on the vertical at this time, and the sky in the background is moving. I tried to use Tshirbooths cloud tutorial, but it still wont recycle the background actor once it hits 0 on the X.
Any good tutorials on runners?
Any good tutorials on runners?
Best Answer
-
EatingMyHat Posts: 1,246
See if this one helps https://www.dropbox.com/s/ixosgmbhq6pc51o/WrapTest.zip
Answers
I am trying to create sort of a parallax type background with different layers. For the furthest background, it is a sky, then closer is a city, and then up front is the ground below. I am creating this for a landscape IPAD. I created the sky background image in photoshop, but created it a lot longer than 1024pixels. I knew I would have to recycle the image, but wanted to get as much variety in as I could. This is the reason I made the image 4096pixels wide. I can wrap an image using the example you sent me and it works great! But once I make it larger than the screen, it does not work so well. I am not sure how to go about this.
Maybe I am thinking of doing this in the incorrect way.
Play around with that... I'm away from home and my Mac, so can't test.
Ace
I guess my only option is to make a very long scene. I have seen other games on here do similar things, just not sure how.
Rendering that in photoshop will be interesting.