playMaker

Author Topic: Easy Touch 5: Map swipe controls to Get Key Down actions?  (Read 2270 times)

JOY

  • Junior Playmaker
  • **
  • Posts: 51
  • From JOY Entertainment
    • JOY Entertainment
Easy Touch 5: Map swipe controls to Get Key Down actions?
« 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
« Last Edit: December 20, 2016, 12:57:48 PM by JOY »

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
« Reply #1 on: December 21, 2016, 04:23:38 PM »
"Swipe Gesture Event" action:)

JOY

  • Junior Playmaker
  • **
  • Posts: 51
  • From JOY Entertainment
    • JOY Entertainment
Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
« Reply #2 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?

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
« Reply #3 on: December 24, 2016, 05:01:41 AM »
No you can put this action where you want.

JOY

  • Junior Playmaker
  • **
  • Posts: 51
  • From JOY Entertainment
    • JOY Entertainment
Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
« Reply #4 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.