arypbatista/godot-swipe-detector

_on_SwipeDetector_swipe_started( partial_gesture ) always giving "left" on using get_direction().

Opened this issue · 2 comments

When using the func _on_SwipeDetector_swiped( partial_gesture ), the partial_gesture.get_direction() always returns the direction as left.

This is not desired, as in my case, I need to perform an action as soon as the swipe starts.

Example code to recreate:

func _on_SwipeDetector_swiped( partial_gesture  ):
	var dir = partial_gesture.get_direction()
	print("Swiped in dir = ", dir)

Can you share your SwipeDetector configuration? How did you set up the node?

Sure, I have configured the SwipeDetector node as : https://i.imgur.com/3CQ2B1T.png
And it's set up in the scene hierarchy as : https://imgur.com/a/QokC8i5