Author |
Message |
yodu123
|
Posted: 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. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
saltpro15
|
Posted: 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... |
|
|
|
|
|
andrew.
|
Posted: 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. |
|
|
|
|
|
yodu123
|
Posted: 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 |
|
|
|
|
|
zero-impact
|
Posted: 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. |
|
|
|
|
|
|