Hello friends!
My question is in two parts. Allow me to explain what I have so far, and the big picture.
I have attached a Camera2D of a certain size to a KineticBody2D that the user controls as the player. It is currently centered. The idea is to structure the world in a Zelda-like grid pattern, where the player can roam within one grid space until he reaches the edge, when the world will shift to the next grid space, and the player can continue seamlessly where he left off.
However, I would like the camera to be smaller than each grid space, so that the user cannot see the entire space on the grid all at once. When the player has moved so that an edge of the centered camera comes in contact with the edge of a grid space, the camera will stop moving even as the player approaches the edge of the space.
How can I create a grid with bounds that can affect the camera movement but Not the player movement?
How can I keep the camera centered on the player only when the conditions of the grid allow the camera to be centered?
I am still learning what functions that the godot 3.0 nodes are capable of, any assistance is greatly appreciated!
-PokeJosh