playMaker

Author Topic: holding a button down to keep doing somehting[SOLVED]  (Read 3985 times)

thehive

  • Playmaker Newbie
  • *
  • Posts: 24
holding a button down to keep doing somehting[SOLVED]
« 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??
« Last Edit: January 11, 2016, 07:13:25 AM by jeanfabre »

thehive

  • Playmaker Newbie
  • *
  • Posts: 24
Re: holding a button down to keep doing somehting
« Reply #1 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

thehive

  • Playmaker Newbie
  • *
  • Posts: 24
Re: holding a button down to keep doing somehting
« Reply #2 on: December 23, 2015, 08:30:55 PM »
i tired using this but still no go

GUI  Layout Repeat Button

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: holding a button down to keep doing somehting
« Reply #3 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

here's a video that might help you out :


thehive

  • Playmaker Newbie
  • *
  • Posts: 24
Re: holding a button down to keep doing somehting
« Reply #4 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

« Last Edit: December 24, 2015, 08:24:06 AM by thehive »

thehive

  • Playmaker Newbie
  • *
  • Posts: 24
Re: holding a button down to keep doing somehting
« Reply #5 on: December 27, 2015, 12:45:21 PM »
this is perfect thanks