Hey,
I’ve been thinking about this since I first managed to get player/map movement working a while back. How do you move the map, camera, npcs and the player’s character? The way that I’ve been doing it seems really crude and it puts a lot of limitations on how I do things, I’d like to change the way I’m doing it atm but I’m not sure of any other ways to do this.
The way that I currently do everything is… The player’s character is always centered on the screen, everything else is moved around the player to make it look as if the player is moving. By doing it this way I’m unable to allow the window to be resized because it’ll throw off all of the math which I use to draw everything, the player’s speed can only be slightly increased before it goes into super speed and looks terrible and I won’t be able to do decent looking cutscenes with this setup.
So, how would you go about moving the player’s character, camera, npcs, etc… in a 2D game? (Just theory, I’m not looking for any code.)