PDA

View Full Version : How do i get the arrow keys to work after a method?


Spartan 117
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.

x2495iiii
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

Spartan 117
06-01-2013, 08:01 AM
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