A simple Godot addon for managing Camera2D
transitions and behaviors using defined regions. Easily add camera transitions, shake effects, and region-specific configurations to your game.
- Download or clone this repository.
- Copy the addon folder into your project's
addons/
directory. - Enable the addon in your Godot project via Project Settings > Plugins.
- Add a
CameraRegionController2D
node to your scene. - Add
CameraRegion2D
nodes as children of theCameraRegionController2D
to specify the regions. - Assign the
target_node
(e.g., the player) and thecamera
to theCameraRegionController2D
. - Customize transitions using the
CameraTransition
resource. - Optionally, connect to signals such as
target_entered_region
orshake_started
for further control.
Note:
Methods and variables prefixed with _
are considered private and should not be accessed outside their source code.
This project is licensed under the MIT License. See the LICENSE file for details.
The demo assets are from Kenney.