Looking for help with 2d camera

version 4.6.3

im making a game, i guess it would be a platformer (2d, left, right, jump) and im trying to figure out how to make a camera that follows the player, but with a sort of deadzone?

to try to imagine what it is, the screen would have 2 parts: a big middle area, and a small area around the edges of the screen. The camera stays anchored to one point, until the player character is in that deadzone area and then it begins to follow? i hope this makes sense and im just looking for a name on this camera style. Thanks!

Do you wish to implement the feature yourself, or are you fine with using a plug-in? Because Phantom Camera provides this sort of behavior out of the box.

You can just attach a Camera2D to your player, and then set limits that match the size of your map. It’ll do that for you.

Another plugin you can check out is my Camera2D plugin. Just attach a Camera2DLimit node to your Camera2D and assign a TileMapLayer to it. It’ll do the rest.