Originally Posted By: MrGuest
Code:
action a_player(){
  while(me){
    if(key_space){
      //Superku's code here
    }
    wait(1);
  }
}



yeah that's exactly what i have but after doing the action once it just doesnt wanna do it again when i press the key again

CODE

if(key_space)
{
while(counter > 0)
{

c_move(me,vector(10*time_step, 0, 0),vector(0, 0, 0), GLIDE);
counter -= time_step;
wait(1);
}
}