Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 scroll
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
yodu123




PostPosted: 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
Sponsor
sponsor
saltpro15




PostPosted: 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.




PostPosted: 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




PostPosted: 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




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: