Playmaker Forum

PlayMaker News => General Discussion => Topic started by: thehive on December 22, 2015, 09:34:14 PM

Title: holding a button down to keep doing somehting[SOLVED]
Post by: thehive on December 22, 2015, 09:34:14 PM
im tryin to make a ui button that when you press and hold the button the game object moves in the direction i want.

for some reason i press the button an and it end at the next state so i set up a bool to see if its press but it jus loops to the start an doesn't keep moving

how can i set this up seems like it would be so simple??
Title: Re: holding a button down to keep doing somehting
Post by: thehive on December 23, 2015, 09:02:00 AM
im tryin get button down but all that dose it see if i clicked a button anywhere not the gui button
Title: Re: holding a button down to keep doing somehting
Post by: thehive on December 23, 2015, 08:30:55 PM
i tired using this but still no go

GUI  Layout Repeat Button
Title: Re: holding a button down to keep doing somehting
Post by: djaydino on December 23, 2015, 08:57:20 PM
Hi,
if you are using ugui (unity 4.6+) you need to get the "ugui proxy full" package on the EcoSystem (https://hutonggames.fogbugz.com/default.asp?W1181)

here's a video that might help you out :

Title: Re: holding a button down to keep doing somehting
Post by: thehive on December 24, 2015, 08:12:29 AM
no i was using ngui but everything i tired worked this might work but the tut is not a full longpress as you have to daisy chain events to hold the button down

this looks like what i need ill test it out thanks

Title: Re: holding a button down to keep doing somehting
Post by: thehive on December 27, 2015, 12:45:21 PM
this is perfect thanks