playMaker

Author Topic: Button on press (not release)  (Read 4839 times)

Alaric

  • Playmaker Newbie
  • *
  • Posts: 2
Button on press (not release)
« 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. :)

Alaric

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Button on press (not release)
« Reply #1 on: July 21, 2014, 09:22:19 AM »
I changed the action script to repeatbutton, but its causing it to trigger to many times...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Button on press (not release)
« Reply #2 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

rik

  • Full Member
  • ***
  • Posts: 246
Re: Button on press (not release)
« Reply #3 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/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Button on press (not release)
« Reply #4 on: December 22, 2014, 03:50:37 AM »
Hi,

 How did you scripted this to work with PlayMaker?

 Bye,

 Jean

rik

  • Full Member
  • ***
  • Posts: 246
Re: Button on press (not release)
« Reply #5 on: December 25, 2014, 01:07:34 PM »
i am using get action it will give bool true when the button was pressed