Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MrPenguin9

macrumors member
Original poster
Aug 1, 2008
59
0
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
 

detz

macrumors 65816
Jun 29, 2007
1,051
0
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

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.
 

MrPenguin9

macrumors member
Original poster
Aug 1, 2008
59
0
Thanks for the reply.:)

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

Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.