playMaker

Author Topic: Get Key Down Question [SOLVED]  (Read 1497 times)

ilovelessons

  • Junior Playmaker
  • **
  • Posts: 70
Get Key Down Question [SOLVED]
« on: March 09, 2017, 07:05:28 PM »
Hi goodday,

I am building a kinda falppy bird game and I am using Playmaker + Unity. I am currently getting the hang of the Get Button Down in the Action Browser. However, if I am playing on a phone I would need to tap the screen.. how do I get a Tap function for a phone.. where should I be looking in the action browser?

ANy advice mates?
« Last Edit: March 10, 2017, 04:55:12 AM by jeanfabre »

Breadman

  • Full Member
  • ***
  • Posts: 185
  • Derp
Re: Get Key Down Questuon
« Reply #1 on: March 09, 2017, 08:02:23 PM »
The action I use for this is called "Touch Object Event". In the case of a flappy-bird style game, you'd create an invisible gameobject with a box collider that's the size of your entire screen. Target that full-screen gameobject with the "Touch Object Event" action, and then send whatever events you'd like.

For example, when the full-screen gameobject receives "touch began", send an event that moves the FSM to a new state, where you use other actions to move the bird upwards by X.

ilovelessons

  • Junior Playmaker
  • **
  • Posts: 70
Re: Get Key Down Questuon
« Reply #2 on: March 09, 2017, 08:19:11 PM »
Thank you do much breadman !!!!!

I in my country Breadman.. well Breddaman means friend !!!! :D