A Camera2D node controlled through gestures. It's also an example of how to use the Godot Touch Input Manager.
1 - Seting up Godot Touch Input Manager
- Dowload the latest release from https://github.com/Federico-Ciuffardi/Godot-Touch-Input-Manager/releases
- Extract the downloaded .zip file somewhere in you project
- Locate the extracted
InputManager.gd
, and Autoload it.
- Dowload the latest release from https://github.com/Federico-Ciuffardi/GestureControlledCamera2D/releases
- Extract the downloaded .zip file somewhere in you project
- Add the extracted GestureControlledCamera2D node (GCC2D.tscn) to the scene and make sure to set
Current
toOn
- Customize the script variables to your liking (optional)
Check out the example!
Name | Description |
---|---|
Max Zoom | The camera will not zoom in any further than this |
Min Zoom | The browser will not zoom out any further than this |
Zoom Gesture | The gesture that will control the camera zoom |
Rotation gesture | The gesture that will control the camera rotation |
Movement Gesture | The gesture that will control the camera movement |
Using SemVer for versioning. For the versions available, see the releases
- Federico Ciuffardi
Feel free to append yourself here if you've made contributions.
Thank you for checking out this repository, you can send all your questions and feedback to [email protected].
If you are up to contribute on some way please contact me :)