playMaker

Author Topic: GUI Switch - Clicking and Holding a GUI Button [SOLVED]  (Read 2677 times)

Ticked_Off_Pixel

  • Playmaker Newbie
  • *
  • Posts: 31
    • http://happystar-adventures.tumblr.com/
GUI Switch - Clicking and Holding a GUI Button [SOLVED]
« on: January 02, 2013, 05:18:47 PM »
Greetings,

I'm having some trouble using a GUI element as a Switch.   ???

What I need is a button that when I click and hold on it, some object will move. If I stop clicking it, the object stops.

The problems is that a GUI Button only sets it's transition after you release the mouse button. When I try to change the transition to MOUSE DOWN, the GUI Button does nothing.

I know that I could use this same concept if I click a Game Object, but I'd like to do it with a GUI element.

Can someone help me?

Thanks!
« Last Edit: January 03, 2013, 07:52:57 PM by Ticked_Off_Pixel »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: GUI Switch - Clicking and Holding a GUI Button
« Reply #1 on: January 03, 2013, 06:47:15 AM »
Hi,

 There is not such action yet in playmaker. What I suggest is to get a regular gui texture, then you'll have more control over mouse events.

bye,

 Jean

Ticked_Off_Pixel

  • Playmaker Newbie
  • *
  • Posts: 31
    • http://happystar-adventures.tumblr.com/
Re: GUI Switch - Clicking and Holding a GUI Button [SOLVED]
« Reply #2 on: January 03, 2013, 08:20:16 PM »
Great!

I created a GUI Texture object and used MOUSE UP and DOWN events with it.

Thanks.