Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
disable mouse click
Old
gailen
Guest
 
Status:
Posts: n/a
Default disable mouse click - 11-21-2009, 06:20 PM

while a function is running, how can I stop the user from clicking & starting another function ?
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 11-21-2009, 06:59 PM

You could add a boolean variable that is set to true whenever a certain method is activated (i.e. one of the method the user activates by clicking). Then, put in an if/else if statement which checks to see if that variable is true before activating any methods.

Just be sure to set it back to false at the end of each method, so another can be activated when it's done.


(')>
   
Reply With Quote
Or...
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Lightbulb Or... - 11-23-2009, 10:01 AM

Or, what i do, is make it so you click whatever is disabled, when you put a big square in front of the screen to disable clicking.


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.