PinchPanCamera
A touchscreen optimized camera control system for common 2D top-down strategy games.
Install / Use
/learn @Divirad/PinchPanCameraREADME
PinchPanCamera
<br>
![]()
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)
![]()
Usage
- Download the
addons/ppcfolder and put it into your addons folder of your project. - Enable the PinchPancamera Plugin in your Project Settings
- Add the PinchPanCamera Node to your Project like a regular Camera (
2DNode/Position2D/PinchPanCamera) - 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
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
