
-----------------------------------
diablo
Mon Jan 17, 2005 1:09 pm

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?
i am your father :withstupid: 

-----------------------------------
Tony
Mon Jan 17, 2005 1:30 pm


-----------------------------------
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

-----------------------------------
diablo
Tue Jan 18, 2005 11:39 am


-----------------------------------
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.

-----------------------------------
Cervantes
Tue Jan 18, 2005 4:20 pm


-----------------------------------
check here: http://www.compsci.ca/v2/viewtopic.php?t=7026&highlight=mario. :)
