Side scrollers

Discussion in 'iPhone/iPad Programming' started by tony3d, Jul 23, 2010.

  1. macrumors 6502

    Joined:
    Apr 6, 2006
    #1
    I was just wondering how the graphics are made for side scrolling video games? How would you go about setting up a scene to make those long side scrolling games? I may need to do this soon. Any input would be great. Thanks.
     
  2. macrumors member

    Joined:
    Jun 25, 2010
    #2
    It depends on what you want the game to do, but one way doesn't require a huge scene. You can have one background image that doesn't actually change, but it created the illusion that you are moving because as time goes on more object are spawned off-screen and move constantly sideways until the go off the other end of the screen or are killed, then they are removed from the game. I'm sure you can find some basic game theory books or sites to help with this. Check our Cocos2D for the iPhone if you want to work on the iPhone. They also have a forum on their site too.
     
  3. macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #3
    Perhaps giving us an example of what you're trying to do using an existing game as a point of reference might get you a better response.
     
  4. macrumors 6502a

    Joined:
    Mar 30, 2012
    #4
    If you're talking about the scrolling background in 2D platform games,
    Google "2D tile engine".
     
  5. macrumors 603

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #5
  6. macrumors member

    Joined:
    Mar 27, 2012
    #6
    Going off of what ArtOfWarfare said, this is a very common but simple technique used in many side scrollers (Jetpack Joyride, Funrun, etc). Basically you might have 2-3 "layers", the frontmost being the important game objects that the player can actually interact with, enemies, power ups, items, and such. The middle layer can be objects in the near background, like trees, rocks, buildings or whatever. And the last layer will usually be the setting of the game, like mountains, forest, cave, etc. And to make it all come together you simply make it so that the lower layers move slower than the top layers. It gives the illusion of traveling.
     

Share This Page