Godot Version
v4.2.2.stable.mono.official [15073afe3]
Question
Hi Godot Community, nice to meet you all!
I have encountered a problem while trying to add a camera that follows the player. From some forum crawling I found that I should be able to just add a Camera2D node as a child node to the CharacterBody2D of the player to get the camera to follow the player model properly, but when I add the node and test the game, the player is unable to move from it’s starting position. The game is still detecting user input and the sprite animations change as I change input direction, but the player cannot move from their starting position.
I’ve done some Google searching and scrolling the docs, but I haven’t found any mentions on the forums of anyone having similar problems. For what it’s worth, it is also shifting the TextureRect far down and to the right instead of centered in the viewport. When I remove the Camera2D, these issues go away.
Any ideas as to what I might be missing?
Can share code in pastebin if that’s better.