playMaker

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

JOY

  • Junior Playmaker
  • **
  • Posts: 51
  • From JOY Entertainment
    • View Profile
    • JOY Entertainment
Easy Touch 5: Map swipe controls to Get Key Down actions?
« on: December 20, 2016, 10:31:16 AM »
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, 10:57:48 AM by JOY »

gozda

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

JOY

  • Junior Playmaker
  • **
  • Posts: 51
  • From JOY Entertainment
    • View Profile
    • JOY Entertainment
Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
« Reply #2 on: December 23, 2016, 09: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
    • View Profile
Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
« Reply #3 on: December 24, 2016, 03:01:41 AM »
No you can put this action where you want.

JOY

  • Junior Playmaker
  • **
  • Posts: 51
  • From JOY Entertainment
    • View Profile
    • JOY Entertainment
Re: Easy Touch 5: Map swipe controls to Get Key Down actions?
« Reply #4 on: December 24, 2016, 12:32:46 PM »
Thank you. It work for the Android apk but I cannot use mouse on Game windows to simulate the swipe.