camera?
Posted: Tue Jul 28, 2009 11:28 am
hey guys, i was wondering, especially after seeing the Pokemon example posted up earlier, how does the "camera" work? i know there is no real camera (or maybe love has a function for that?) but we still need to get things to move around when you move the character. the character sits in the middle but the tiles move under his feet. im just wondering how this is done?
from what i think, when the player moves we add a certain amount to a variable that stores his verticle and horizontal movements (not actually move him), then add these values to every single object's x and y thats supposed to move.. but that sounds a little elaborate
from what i think, when the player moves we add a certain amount to a variable that stores his verticle and horizontal movements (not actually move him), then add these values to every single object's x and y thats supposed to move.. but that sounds a little elaborate