Swipe mechanic card game

Hey guys, I want to create a tinder like swipe mechanic game (very similar to Reigns). I have learnt the basics of Lua. I am reading the defold examples. So I found two library which can help me implement dragging and swiping. Can somebody make me understand is it better to go with gui nodes (druid) or implement the gestures in game object (defold-input). What’s the difference and what should I choose. Sorry I am a total beginner.

https://github.com/Insality/druid
https://github.com/britzl/defold-input

If. you only care about the gesture (ie swipe left or right) then I’d just go for the gesture detection you have in defold-input. But if you need to first detect a press on the card, then a drag/swipe left or right and finally a release, then it might be better to implement it in GUI using Druid.

1 Like