Godot 2D Top Down Camera
C

Publisher

cng6sk

Godot 2D Top Down Camera

2D
Camera 2D Zoom Pan Boundary Strategy Simulation Cursor

A smooth, feature-rich top-down camera plugin for Godot. Effortlessly pan and zoom your 2D game scenes with intuitive controls and configurable boundaries. Ideal for strategy and simulation games, with camera controls inspired by titles like Hearts of Iron and Stacklands. Main Features - Smooth Cursor-Centric Zoom & Pan Seamlessly zoom in and out towards the mouse cursor, with smooth camera movement and interpolation for a polished feel. - Visual Boundary Configuration Easily set and visualiz...

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 ProjectProject SettingsPlugins

Usage

  1. After activating the plugin, add a new "TopDownCamera2D" node to your scene.

  2. Configure input actions in ProjectProject SettingsInput Map:

    • Add a drag action
    • Add a zoomIn action
    • Add a zoomOut action
  3. Configure the camera properties in the Inspector panel.

  4. 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.