How do you make a moving view for a side scroller like mario?

Discussion in 'iPhone/iPad Programming' started by MrPenguin9, Nov 23, 2008.

  1. macrumors member

    Joined:
    Aug 1, 2008
    #1
    How do you make a moving view for a side scroller like mario? I want to make a side scroller, but I don't know how to make the view move as my character moves?

    Thanks
     
  2. macrumors 65816

    Joined:
    Jun 29, 2007
    #2
    Hey, I meant to respond to your other post but I forgot. :p

    There are a few ways but probably the easiest is to not move the "guy" but to move everything around him. So when he moves forward you move the background to the left and it gives the illusion that it's moving. The other way is to use a UIScrollview and and just move the guy along the uiscrollview. I use a combination of both for Super Pig.
     
  3. thread starter macrumors member

    Joined:
    Aug 1, 2008
    #3
    Thanks for the reply.:)

    How do you use UIScrollview? Can you give me any examples?

    Thanks.
     
  4. macrumors 65816

    Joined:
    Jun 29, 2007
    #4
    There are tons of tutorials online, Google UIScrollView and you should find some information.
     

Share This Page