-
timer?
i got a image that i can move around using my keyboard handler keys, but i have a timer set so that when i hit a button (ex. T) then i should run across the screen with no movement and the keyboard handler should be disabled..... im not sure on how to do this i have had suggestions on using x and y paramaters to control the timer but im too confused... please help!!!
-
-
-
I take it you mean that if you press "T" at the appropriate time then the character will move auto maticly to do that you would just do this:
if(T is pressed (using what ever input method)&& timer=whatever time
{
do_what_ever_happens_if_you_press_the_move key();
}
note that depending on what you are exactly trying to do you may want to us while instead of if.