Computer Science Canada

scroll

Author:  yodu123 [ Wed Apr 15, 2009 6:43 pm ]
Post subject:  scroll

i`m doing a game that looks like Mario. but i don`t know how i can make the screen move as Mario runs.

Author:  saltpro15 [ Wed Apr 15, 2009 8:14 pm ]
Post subject:  RE:scroll

maybe have a set of background pictures, and then just load them as mario moves, so it creates that illusion of moving backgrounds? there's probably a better way though...

Author:  andrew. [ Wed Apr 15, 2009 9:04 pm ]
Post subject:  RE:scroll

You have to have a background image and move it in the opposite direction that Mario is running in. e.g. if Mario is running left then move the background right.

Author:  yodu123 [ Wed Apr 15, 2009 9:16 pm ]
Post subject:  Re: scroll

ya that is what i thought. but my problem is i don`t know how i can make the background move

Author:  zero-impact [ Wed Apr 15, 2009 9:29 pm ]
Post subject:  RE:scroll

You just load a really wide picture for the background (or many smaller ones) and have their x values change as the characters does.


: