MapCamera2D

An asset by Julian-Vos
The page banner background of a mountain and forest
MapCamera2D hero image

Quick Information

1 ratings
MapCamera2D icon image
Julian-Vos
MapCamera2D

A node that adds mouse, keyboard and gesture zooming, panning and dragging to Camera2D. Exported properties:- zoom_factor (multiplies Camera2D.zoom each mouse wheel scroll)- zoom_min (minimum Camera2D.zoom)- zoom_max (maximum Camera2D.zoom)- zoom_relative (if true, mouse zooming is done relative to the cursor)- zoom_keyboard (if true, zooming can also be done with the plus and minus keys)- pan_speed (adds to Camera2D.offset while the cursor is near the viewport's edges)- pan_margin (maximum number of pixels away from the viewport's edges for the cursor to be considered near)- pan_keyboard (if true, panning can also be done with the arrow keys)- drag (if true, the map can be dragged while holding the left mouse button)- drag_inertia (multiplies the final drag movement each second)

Supported Engine Version
4.0
Version String
1.1.0
License Version
MIT
Support Level
community
Modified Date
28 days ago
Git URL
Issue URL

A node that adds mouse, keyboard and gesture zooming, panning and dragging to Camera2D. Exported properties:

- zoom_factor (multiplies Camera2D.zoom each mouse wheel scroll)
- zoom_min (minimum Camera2D.zoom)
- zoom_max (maximum Camera2D.zoom)
- zoom_relative (if true, mouse zooming is done relative to the cursor)
- zoom_keyboard (if true, zooming can also be done with the plus and minus keys)
- pan_speed (adds to Camera2D.offset while the cursor is near the viewport's edges)
- pan_margin (maximum number of pixels away from the viewport's edges for the cursor to be considered near)
- pan_keyboard (if true, panning can also be done with the arrow keys)
- drag (if true, the map can be dragged while holding the left mouse button)
- drag_inertia (multiplies the final drag movement each second)

Reviews

1 ratings
EnigmaEmmy Rated positive

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

1 ratings
MapCamera2D icon image
Julian-Vos
MapCamera2D

A node that adds mouse, keyboard and gesture zooming, panning and dragging to Camera2D. Exported properties:- zoom_factor (multiplies Camera2D.zoom each mouse wheel scroll)- zoom_min (minimum Camera2D.zoom)- zoom_max (maximum Camera2D.zoom)- zoom_relative (if true, mouse zooming is done relative to the cursor)- zoom_keyboard (if true, zooming can also be done with the plus and minus keys)- pan_speed (adds to Camera2D.offset while the cursor is near the viewport's edges)- pan_margin (maximum number of pixels away from the viewport's edges for the cursor to be considered near)- pan_keyboard (if true, panning can also be done with the arrow keys)- drag (if true, the map can be dragged while holding the left mouse button)- drag_inertia (multiplies the final drag movement each second)

Supported Engine Version
4.0
Version String
1.1.0
License Version
MIT
Support Level
community
Modified Date
28 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers