Endless scrolling background

hey, i am stuck with my game.
First i search the forums for a long time but i didnt find anything that helped me out. i used google and all other things.
my problem:
i have to create a endless background that is scrolling form the left to the right. the width is 960. what do you guys recommend??

hope you can help me out

-jari-

Comments

  • tahakitantahakitan Member Posts: 102
    edited December 2013
    if it's for ipad you should make it fit 768x1024 it will save you alot of issues. if you have photoshop you can use the content aware tool to extend it and not effect the style.
    photoshop ---> edit ---> content aware scale
  • JarivespaJarivespa The NetherlandsMember Posts: 65
    no it is for iphone
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Are you saying you want to keep repeating the same 960 px wide image over and over?

    If so just move it across the screen and once it reaches the far edge, have the image spawn a new copy of itself and move it across the screen in a continuous loop. You'll also want to destroy the copy that is moving off screen once its all the way off screen so you don't get memory problems.
  • JarivespaJarivespa The NetherlandsMember Posts: 65
    @jamie_c
    yea i want that. but how does it make a copy and how does it destroy itself?
  • tahakitantahakitan Member Posts: 102
    when you click scene check wrap x. it will scrolls throw if you move the x axis of the image.
  • JarivespaJarivespa The NetherlandsMember Posts: 65
    well. i found another way to make my game. just let the obstacels move to me. it will looks like i am running
  • tahakitantahakitan Member Posts: 102
    you haven't been doing that? I guess we should of mentioned that part lol.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Sounds like you got it working but if you need it I have an endless runner tutorial here:

    http://www.jamie-cross.net/?portfolio=gamesalad-endless-runner-overview
Sign In or Register to comment.