Computer Science Canada sidescroller background help |
Author: | JHDK [ 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 |
Author: | AsianSensation [ Tue Jan 20, 2004 8:40 pm ] |
Post 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. |
Author: | Dan [ Tue Jan 20, 2004 8:42 pm ] |
Post 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 |
Author: | JHDK [ Tue Jan 20, 2004 8:46 pm ] |
Post subject: | |
thanks alot, that really helps. & that is one sick game you made Asian |