Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DodoIta | |
Old Version | Published before Godot 3 was released. |
Hello folks,
I’m trying to detect a swipe gesture using Godot 3.0 alpha2, but I’ve got no clue where to start from. Searching for ‘swipe’ in the current docs gets no results and I’m so not familiar with this kind of input.
So, can anyone give me a lead? Where to start from? Or is there already something I can use?
I see there are some helpers on Github to detect swipe, such as this for Godot 2.x : GitHub - arypbatista/godot-swipe-detector: Detect gestures and swipes in your game
There shouldn’t be much differences about this in Godot 3.0, some functions are renamed and look different but the functionnality is the same. Also remember it’s still alpha^^
Zylann | 2017-11-03 01:08
I actually know the existence of swipe detector, and I tried using that before asking this question.
I downloaded it and opened in 2.1.4, then used the “export to 3.0” tool. Of course I knew this was probably not working, so I opened the exported version with 3.0 and tried fixing every error, which I couldn’t do because there are some built-in scripts I couldn’t edit if some scenes were not loaded.
So I isolated the library by deleting the examples folder and only keeping the addons one, then I created another scene with just a Node2D
to test it, I instanced SwipeDetector.tscn as a child of my new scene, created a script and connected a function to the signals to get the input points, but nothing.
The engine gives me no error, but no output either! So it’s pretty much not working and I’ve got no clue on how to fix it
DodoIta | 2017-11-03 11:17