PinchPanCamera

An asset by divirad
The page banner background of a mountain and forest
PinchPanCamera hero image

Quick Information

0 ratings
PinchPanCamera icon image
divirad
PinchPanCamera

Godot Plugin for a touchscreen optimized camera control system for common 2D top-down strategy games. (Works also with mouse when "Emulate Touch with Mouse" is enabled)

Supported Engine Version
4.0
Version String
0.4.1
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

PinchPanCamera

README Version badge README Version badge

README README README README README

README Author badge README PayPal badge

README Icon

Godot Plugin for a touchscreen optimized camera control system for common 2D top-down strategy games. (Works also with mouse when Emulate Touch with Mouse is enabled)

README

Source of Demo Map

Usage

  1. Download the addons/ppc folder and put it into your addons folder of your project.
  2. Enable the PinchPancamera Plugin in your Project Settings
  3. Add the PinchPanCamera Node to your Project like a regular Camera (2DNode/Position2D/PinchPanCamera)
  4. Credit us in your Game, pls :)

Short Documentation

Export Variables

Enable Pinch Pan : bool

enables functionallity of the PinchPanCamera Node

Slide Mode : int Select between Normal, only-Horizontal and only-Vertical slide Mode

current : bool

if current is true, the PPC Node is the current Camera

natural slide : bool

if false it inverts the input

smoothing : bool

enables smooth dragging

smoothing_speed : int

the smoothness while dragging

min_zoom_factor : float max_zoom_factor: float

zoom limit to prevent "infinite-zoom"

drag_deadzone : Vector2

deadzone of dragging

show_debug_icon : bool

shows with the ppc icon the position of the Position2D for debugging purposes

Signals

zoom_in()

throws when user is zooming in

zoom_out()

throws when user is zooming out

just_pressed()

throws when user touched the screen the first time before dragging

dragging()

throws when user is dragging the camera

Godot Plugin for a touchscreen optimized camera control system for common 2D top-down strategy games. (Works also with mouse when "Emulate Touch with Mouse" is enabled)

Reviews

0 ratings

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

0 ratings
PinchPanCamera icon image
divirad
PinchPanCamera

Godot Plugin for a touchscreen optimized camera control system for common 2D top-down strategy games. (Works also with mouse when "Emulate Touch with Mouse" is enabled)

Supported Engine Version
4.0
Version String
0.4.1
License Version
MIT
Support Level
community
Modified Date
1 year 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