[Solved] Recognition of certain hand gestures (on mobile)?

P

Piyo

Guest
I'm thinking of creating a mobile game for Android/iOS.
Is it possible for GameMaker to recognize specific hand gestures on a touchpad?

Like, draw a circle to attack; draw a square to defend (regardless of the size)?
Sidenote: Or even better, a larger circle deals higher damage, but takes longer to cast. (assuming, size recognition is a possibility)
Or is it only limited to 'tap to attack' and 'hold to defend'?
 
P

Piyo

Guest
It's possible, but you'll need to add some logic to it.
http://docs2.yoyogames.com/index.html?page=source/_build/3_scripting/4_gml_reference/controls/gesture input/index.html
The gesture functions allow you to detect dragging or rotating start/end and offsets; it's up to you to use that data to judge whether it's a circle, and how large it is.
Ooo! GMS 2 sure has plenty of fun functions owo
I did not know this since I've only searched device input methods of GMS 1.4

Thank you very much~
 

rIKmAN

Member
I'm thinking of creating a mobile game for Android/iOS.
Is it possible for GameMaker to recognize specific hand gestures on a touchpad?

Like, draw a circle to attack; draw a square to defend (regardless of the size)?
Sidenote: Or even better, a larger circle deals higher damage, but takes longer to cast. (assuming, size recognition is a possibility)
Or is it only limited to 'tap to attack' and 'hold to defend'?
https://marketplace.yoyogames.com/assets/398/tmc-touch
 
Top