Goal: simple top-down camera which follows the player as they walk around in a 2D scene.
My (newb) scene is as follows:
- Node
CanvasLayer
some TileMaps with terrain, etc
Player (instance)
sprite, etc
*** Camera2D
The Camera2D has Current
On
In the editor, I see a purple box around my Player for the camera, and as I move the Player I see the purple box move correctly.
However, when I run the game the Camera2D's position seems to be set to the viewport's position, moving the position of the character to match, and disabling any movement.
I can get the general behavior I want by Enabling Follow Viewport
on the CanvasLayer, but this causes some weird visual effects and is generally I believe a Bad Thing for what I'm trying to do.