VECTOR move_vector;
action PlayerAct
{
VECTOR* move_vector = nullvector;
while(1)
{
if (key_w)
move_var.y = 20;//move 20, if key w is pressed
if (key_s)
move_var.y = -20;//move -20, if key s is pressed
if ((!key_w && !key_s) || (key_w && key_s)) //if both keys are pressed or not pressed!!
move_car.y = 0; // if no key is pressed, set 0
c_move (my, move_vector, nullvector, GLIDE);
wait(1);
}
}