2D top down level help

So what I am trying to accomplish is kind of the feel from NES the legend of Zelda. It seems that the camera is at the center of the screen and when the player exits the screen it will move to the center of that portion of the level. How would I go about achieving this.

Here is an example.

Hello ThatGuyMiniB,

This answer requires a few parts.

First comes setting up a camera that will look at the world below. My suggestion for this is to tile your world. Have a finite area that your camera can look at and make that the edge of each tile. From here you will need to code your camera so that it looks at the center of that tile. Also, you will need to code events that will register your character reaching the edge of the tile and will draw the next tile while moving the old one out of the way. From here you will need to add code that will tell the camera to stay put and look at the new tile piece.

You may be able to get away with simply having a grid that moves and moves out according to which way the character exits the tile on screen and make the tile the size of your FOV that your camera is looking at.

Thanks for the replay ! I’ll try to attemptthis within the next couple of days and update my progress on it soon. :slight_smile: