Computer Science Canada location detection for a side scroller |
Author: | diablo [ Mon Jan 17, 2005 1:09 pm ] |
Post subject: | location detection for a side scroller |
i am trying(valiantly) to make a side scroller game in turing v4. i cant figure out what code i need for the actual "side scrolling" part of my game. can you help me? Quote: i am your father ![]() |
Author: | Tony [ Mon Jan 17, 2005 1:30 pm ] |
Post subject: | |
the idea is that your character is always in the center and the rest of the map is relative to your character. so when your character is at x:125 (for example... also assume that center of the screen is at x:25). You move everything else 100 units to the left |
Author: | diablo [ Tue Jan 18, 2005 11:39 am ] |
Post subject: | |
so what would i do ti make to "scroll" smoothly? ie: like in a mario game , the screen will gradually scroll in relative to my character and is just doesnt pop up there. |
Author: | Cervantes [ Tue Jan 18, 2005 4:20 pm ] |
Post subject: | |
check here: http://www.compsci.ca/v2/viewtopic.php?t=7026&highlight=mario. ![]() |