playMaker

Author Topic: Detect a touch on screen  (Read 3123 times)

indy2005

  • Playmaker Newbie
  • *
  • Posts: 5
Detect a touch on screen
« on: September 02, 2013, 06:29:43 PM »
Hi,

I need my level to start when any touch is detected on screen.  How do I achieve this?  Any advice appreciated....first foray into PlayMaker!

Regards

i

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Detect a touch on screen
« Reply #1 on: September 02, 2013, 07:26:47 PM »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Detect a touch on screen
« Reply #2 on: September 11, 2013, 03:33:49 AM »
Hi,

 basically, you will need two actions:

1: use the action "Touch Event" and implement an event for the "Began" phase ( create event in the event tab)
2: have this event as a transition on the state where you have "Touch Event" action
3: on the second state ( coming from your transition event", use the action "loadLevel" or "loadLevelNum" to actually load anothe scene

that's it. So, yes, Study carefully all the screencasts and video on playmaker you can, and then try to apply what I said above.

 Bye,

 Jean