Alice Community  

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

Reply
 
Thread Tools Display Modes
Allow object to move with arrows keys, but disable up
Old
IJMcG
Guest
 
Status:
Posts: n/a
Default Allow object to move with arrows keys, but disable up - 09-22-2009, 09:03 PM

I'm making a biking game and want to be able to turn my object left and right with the arrow keys, however I want my forwards motion to be tied to a button, say the A button, so that when the user presses A, the biker pedals a half rotation and goes forward a little ways, and then the user presses A again and he'll do it again, etc. to simulate riding a bike.

Because of this, i don't want the bike to be controlled at all by the forward key, because it would make the bike look like it's just sliding on ice. Anyway to maintain the left/right controls to rotate the bike, but disable the up arrow from working entirely?

Last edited by IJMcG; 09-22-2009 at 09:10 PM.
   
Reply With Quote
Solution
Old
NivekNamttid
Guest
 
Status:
Posts: n/a
Default Solution - 09-22-2009, 09:08 PM

There is one way that I know to do that, click on the events menu, choose when a key is pressed, then right click it and select change to while a key is held. Then select right arrow, and say 'bike turn right x revolutions' to turn it. Same thing with the left key and turn. Don't use the 'let arrow keys control <object>' event.
   
Reply With Quote
Reply


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.