The Daily Click ::. Forums ::. Klik Coding Help ::. Programming Menu Buttons with Active Objects
 

Post Reply  Post Oekaki 
 

Posted By Message

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
27th March, 2015 at 27/03/2015 15:56:32 -

Just wondering if there is an easy way to stop buttons (Active Objects) from registering numerous presses when using the event: "Presses fire 1". I'm making sure not to use "Repeat while key is pressed".

It checks a value when the button is pressed, but also changes the value to allow for new menu buttons to appear but I guess because it happens so fast, it's registering a press for more than just one button.

I'm guessing the best way is to restrict button presses by checking an alterable value that limits how soon the "Presses fire 1" event can be reactivated? Just want to know if I'm overlooking any other ways.

Edited by -Liam-

 
Image

Tell 'em Babs is 'ere...

Dr James 2



Registered
  17/02/2015 13:10:14
Points
  64
27th March, 2015 at 27/03/2015 19:51:42 -

What I do is;

Repeat while player presses button; add 1 to counter
Player stops pressing button; set counter to 0
Then only have an event trigger if the counter equals 1.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
27th March, 2015 at 27/03/2015 23:08:44 -

Ah, that's a better workaround than what I was thinking, thanks!

 
Image

Tell 'em Babs is 'ere...

Airflow

imafirinmahlazr

Registered
  24/09/2003
Points
  -197

VIP MemberSonic SpeedSnow Cloud!Computer
24th April, 2015 at 24/04/2015 06:11:50 -

maybe the 'restrict actions for <time> condtion will work

 
n/a

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
14th June, 2015 at 14/06/2015 22:07:11 -

Heve you Tried
-Press Button 1
+Once Per Loop

 
----------------------
Time for a Sexy Party!
----------------------
   

Post Reply



 



Advertisement

Worth A Click