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