Alice Community  

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

Reply
 
Thread Tools Display Modes
How do i get the arrow keys to work after a method?
Old
Spartan 117
Junior Member
 
Spartan 117's Avatar
 
Status: Offline
Posts: 5
Join Date: May 2013
Exclamation How do i get the arrow keys to work after a method? - 05-31-2013, 08:34 PM

i made a fps game with a bilboard as the menu. I put 3d text in saying PLAY. When you click play its supposed to take you the the game. In the event menu i put arrow keys to move subject. When i play the game i am able to move around even though i didnt start the game. Is there any way to disable the arrow keys until i click the play button.
   
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 05-31-2013, 10:35 PM

I'd just put an if/else statement before each of the arrow key methods that checks to see if the play button has been clicked yet.

So the forward key's method might look like:

If menu.isShowing == true then
(do nothing)
else
move 0.1 meters forward duration = 0 seconds


(')>
   
Reply With Quote
Old
Spartan 117
Junior Member
 
Spartan 117's Avatar
 
Status: Offline
Posts: 5
Join Date: May 2013
Default 06-01-2013, 08:01 AM

Quote:
Originally Posted by x2495iiii View Post
I'd just put an if/else statement before each of the arrow key methods that checks to see if the play button has been clicked yet.

So the forward key's method might look like:

If menu.isShowing == true then
(do nothing)
else
move 0.1 meters forward duration = 0 seconds
Thanks for you help x2495iiii it works now
   
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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.