playMaker

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

Alaric

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Button on press (not release)
« on: July 21, 2014, 05: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
    • View Profile
Re: Button on press (not release)
« Reply #1 on: July 21, 2014, 06:22:19 AM »
I changed the action script to repeatbutton, but its causing it to trigger to many times...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Button on press (not release)
« Reply #2 on: July 29, 2014, 05: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: 247
    • View Profile
Re: Button on press (not release)
« Reply #3 on: December 08, 2014, 10:30:16 AM »
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: 12351
  • Official Playmaker Support
    • View Profile
Re: Button on press (not release)
« Reply #4 on: December 22, 2014, 01:50:37 AM »
Hi,

 How did you scripted this to work with PlayMaker?

 Bye,

 Jean

rik

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