GithubHelp home page GithubHelp logo

federico-ciuffardi / gesturecontrolledcamera2d Goto Github PK

View Code? Open in Web Editor NEW
51.0 4.0 8.0 291 KB

A Camera2D node controlled through gestures. It's also an example of how to use the Godot Touch Input Manager.

License: MIT License

GDScript 100.00%
godot godot3 gesture camera2d godot-touch-input-manager

gesturecontrolledcamera2d's Introduction

GestureControlledCamera2D

A Camera2D node controlled through gestures. It's also an example of how to use the Godot Touch Input Manager.

Demo

Demo

How to use

2 - Using GestureControlledCamera2D

Check out the example!

Script variables

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

Versioning

Using SemVer for versioning. For the versions available, see the releases

Authors

  • Federico Ciuffardi

Feel free to append yourself here if you've made contributions.

Note

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 :)

gesturecontrolledcamera2d's People

Contributors

aaronfranke avatar federico-ciuffardi avatar omarshehata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gesturecontrolledcamera2d's Issues

Camera Limits

First of all thanks for this great assett.

How can i set limits for the camera so it doesnt leave the scene.
I tried using the limits properties of camera2d in the editor, but it seems these are only working if the camera position is changed not the offset.

Any help would be much appreciated.
Cheers

Input area isn't working right

If anchor mode is set to fixed topleft no touch gesture works. If anchor mode is set to drag center only a small portion to the left of my screen works correctly; then if I change the cameras limits the touch area just moves around. I just want it to work correctly and be able to set camera limits without the gesture touch area moving around the screen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.