Godot-TopDown-Camera2d
A smooth top-down camera solution with pan and cursor-centric zoom. Features include mouse cursor-based zooming, boundary limits, and smooth transitions using interpolation.
Installation
Install from the AssetLib or download archive from Github releases and extract addons
directory to your project directory.
Activate plugin in Project
→ Project Settings
→ Plugins
Usage
-
After activating the plugin, add a new "TopDownCamera2D" node to your scene.
-
Configure input actions in
Project
→Project Settings
→Input Map
:- Add a
drag
action - Add a
zoomIn
action - Add a
zoomOut
action
- Add a
-
Configure the camera properties in the Inspector panel.
-
Make the TopDownCamera2D node current to use it as the active camera in your scene.
Features
Smooth Cursor-Centric Zoom and Pan
Visual Boundary Configuration
Other Feature
- Edge Scrolling: Automatically pan the camera when the mouse cursor approaches the screen edges.
- Keyboard Control: Support for keyboard inputs to pan.
Planned Features
- Touch Controls: Add pinch-to-zoom and drag-to-pan functionality for mobile devices.