• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code Is there a way to emulate gesture?


I'm coding controls using gesture events but I also want to use keyboard keys or gamepad buttons for easier cross-platform controls. Is there a way to do this or should I do something like event_perform to force a gesture event in a step event?
I usually try to keep actions universal.

meaning for code, lets say a player can move left right and jump.

Each control has a state, true or false. I might have
var jump;

in my actual movement code I would be check if var jump is true.

and I could then create a script that detects the gesture, keypress, or other input that I want to represent jump. if any desired input is utilized, jump is true. Movement code looks at JUMP rather than input, so remains functional and universal.