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

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




PostPosted: Tue Jan 20, 2004 8:36 pm   Post subject: sidescroller background help

is there a way to make the background move although the user is not doing anything, so that it looks like the plane is moving?
bcuz it looks sorta lame with an unchanging background, and I havent a clue how to start doing this.
any suggestions or help is appreciated
Sponsor
Sponsor
Sponsor
sponsor
AsianSensation




PostPosted: Tue Jan 20, 2004 8:40 pm   Post subject: (No subject)

http://www.compsci.ca/v2/viewtopic.php?t=1354

this was my final project last year, the split.t part had to do with changing background and not moving the characters. It's open sourced, so go ahead and modify it to your heart's content.
Dan




PostPosted: Tue Jan 20, 2004 8:42 pm   Post subject: (No subject)

yep, what you do is load 2 of the same pic then set the 1st verson of the pic to the screen size then the second to rigth above it. keep track of the x and y valules for eahc one and move both pics down at the same rate. once pic 1 is toaly off the bottom of the screen move it to the top of pic 2. then repetate same thing with 1 and 2 fover and it will look like you are moving up

NOTE: it dose not have to be the same pic and it could be more then 2 of them, just that 2 of the same is the bare minamum to get it to work
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
JHDK




PostPosted: Tue Jan 20, 2004 8:46 pm   Post subject: (No subject)

thanks alot, that really helps.

& that is one sick game you made Asian
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  [ 4 Posts ]
Jump to:   


Style:  
Search: