I'm attempting to implement a simple 2D moving map. I.e., the current view displays a portion of a larger enclosing view.
My scene tree:
Node
.... TextureRect
.... .... Control
.... KinematicBody2D
.... .... Camera2D
.... .... Sprite
.... .... CollisionShape2D
TextureRect has size 3840x2160 (aspect 16:9).
Control has size 1280x720 (1/9 the area of TextureRect).
Control is positioned in the center of TextureRect, like the middle tile of a tic-tac-toe board.
KinematicBody2D has a script that moves it right/left/up/down in response to inputs.
Camera2D has Current set to On, so that it determines the view.
It somewhat works, but the movement is erratic. The view doesn't consistently move in the right direction.
Am I using the right approach?