i am currently writing a game engine for a 2d rpg game, and i want to create a "camera" that will follow the player around. the way i create my maps are by using a multidimensional array.
the way i tried i tried to make a camera before was to only display a certain area of the MD array, and have the area move acording to the players position within the array. however this created a few bugs (it messed up the movement of my character.
the way i tried i tried to make a camera before was to only display a certain area of the MD array, and have the area move acording to the players position within the array.
That's pretty much it. It's not an inherently buggy approach, so you must have done something wrong.