Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: Alaric on July 21, 2014, 08:14:44 AM

Title: Button on press (not release)
Post by: Alaric on July 21, 2014, 08:14:44 AM
I'm using the button GUI to activate a jump in my game. It seems that the action triggers on release only. Is there a way to have it trigger on press?

Any help would be great. Thanks. :)
Title: Re: Button on press (not release)
Post by: Alaric on July 21, 2014, 09:22:19 AM
I changed the action script to repeatbutton, but its causing it to trigger to many times...
Title: Re: Button on press (not release)
Post by: jeanfabre on July 29, 2014, 08:03:20 AM
Hi,

In Unity GUI, the default behavior is indeed to fire the event on release, not much to do about it, unless you program a very complex event management to catch mouse events and fire manually, but I would totally not recommand you to go that way.

 instead, you should switch completly to a more powerful UI system such as Ngui or else. It's totally worth the effort.

Bye,

 Jean
Title: Re: Button on press (not release)
Post by: rik on December 08, 2014, 12:30:16 PM
i am using touch drive controller it give bool action when on presshttp://www.unityracingkit.com/index.php/add-ons/touchdrive-pro/
Title: Re: Button on press (not release)
Post by: jeanfabre on December 22, 2014, 03:50:37 AM
Hi,

 How did you scripted this to work with PlayMaker?

 Bye,

 Jean
Title: Re: Button on press (not release)
Post by: rik on December 25, 2014, 01:07:34 PM
i am using get action it will give bool true when the button was pressed