
-----------------------------------
yodu123
Wed Apr 15, 2009 6:43 pm

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.

-----------------------------------
saltpro15
Wed Apr 15, 2009 8:14 pm

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...

-----------------------------------
andrew.
Wed Apr 15, 2009 9:04 pm

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.

-----------------------------------
yodu123
Wed Apr 15, 2009 9:16 pm

Re: scroll
-----------------------------------
ya that is what i thought. but my problem is i don`t know how i can make the background move

-----------------------------------
zero-impact
Wed Apr 15, 2009 9:29 pm

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.
