Alice Community  

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

Reply
 
Thread Tools Display Modes
shutting off keyboard controls
Old
bladesworn
Guest
 
Status:
Posts: n/a
Default shutting off keyboard controls - 03-27-2009, 11:03 AM

I am making a game that so far is working really good but at certain points I need the keyboard controls for the character to shut off. Is this possible?
   
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 03-27-2009, 12:04 PM

I'd create a boolean variable which all of your events check before they carry out any other actions. Just set the variable to false if the keyboard controls need to be disabled.


(')>
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 06-19-2009, 06:41 PM

Is it possible to do:

if:

blah blah happens

else

do key controls some method

?
   
Reply With Quote
Reply

Tags
controls, game, keyboard

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 ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.