Camera character (player) lock

So is there any way to lock the camera to the character (player), as in he is always in the center of the screen no matter what ?
simply make your maps a bit larger.

player being in center is the default, and he only leaves the center if the engine comes to a map border and can no longer move the map around the player.

if you make the maps larger so there is always half a screen-size impassable at the borders, then the engine will always keep the player in the center. You only have to make sure that it is impossible for the player to reach that border.
simply make your maps a bit larger.

player being in center is the default, and he only leaves the center if the engine comes to a map border and can no longer move the map around the player.

if you make the maps larger so there is always half a screen-size impassable at the borders, then the engine will always keep the player in the center. You only have to make sure that it is impossible for the player to reach that border.
Oh, that was an easy solution ! Thank you so much <3
Hello!

Create maps where the ends cannot be accessed.
Like placing water or walls, on the sides it must have at least 9 tiles and on the top and bottom 7.

Good luck.

Original thread: https://forums.rpgmakerweb.com/threads/camera-character-player-lock.138678/