Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: JOY on December 20, 2016, 12:31:16 PM

Title: Easy Touch 5: Map swipe controls to Get Key Down actions?
Post by: JOY on December 20, 2016, 12:31:16 PM
Hi,

I'm working on a project using PlayMaker. So far I use Get Key Down (Up, Down, Left, Right) for the game and then added a FSM to guess touch input using PM buit-in actions.
Now I'd like to replace this manual way with Easy Touch 5. So is there any quick way to map all "Get Key Down" actions with swipe controls like: Swipe Down = key Down, Swipe Up = key Up, Swipe Right = key Right, Swipe Left = key Left. So I don't have to modify many states to add the checker in PlayMaker FSMs as attached screenshot.


Thanks,
Anh
Title: Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
Post by: gozda on December 21, 2016, 04:23:38 PM
"Swipe Gesture Event" action:)
Title: Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
Post by: JOY on December 23, 2016, 11:31:13 PM
Thank you gozda. Do I have to add the global transition "EASYTOUCH / SCENE / ON_SWIPE" to all the states containing this action?
Title: Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
Post by: gozda on December 24, 2016, 05:01:41 AM
No you can put this action where you want.
Title: Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
Post by: JOY on December 24, 2016, 02:32:46 PM
Thank you. It work for the Android apk but I cannot use mouse on Game windows to simulate the swipe.