Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ilovelessons on March 09, 2017, 07:05:28 PM

Title: Get Key Down Question [SOLVED]
Post by: ilovelessons 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?
Title: Re: Get Key Down Questuon
Post by: Breadman 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.
Title: Re: Get Key Down Questuon
Post by: ilovelessons on March 09, 2017, 08:19:11 PM
Thank you do much breadman !!!!!

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