Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Ticked_Off_Pixel on January 02, 2013, 05:18:47 PM

Title: GUI Switch - Clicking and Holding a GUI Button [SOLVED]
Post by: Ticked_Off_Pixel 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!
Title: Re: GUI Switch - Clicking and Holding a GUI Button
Post by: jeanfabre 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
Title: Re: GUI Switch - Clicking and Holding a GUI Button [SOLVED]
Post by: Ticked_Off_Pixel 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.