action_set_motion(direction, 9); frame = 1;