This command pauses the current movement.
object.Pause();
The object stops immediately and does not resume motion until the resume command is issued.
The following code pauses motion of the sphere when the left arrow key is pressed and resumes motion with the resume command when the right arrow key is pressed.
oworld = New World(); ocamera = New Camera(oworld); sphere = oworld.CreateSphere(50,50,50,25,25); ocamera.MoveBack(1200); //Move the sphere. sphere.MoveDown(500,30); //Loop While(TRUE) { //Pause the motion when the left arrow key is pressed. If(IsKeyDown(Keyboard.LEFT)) { Sphere.Pause(); } // Resume motion when the right arrow key is pressed. If(IsKeyDown(Keyboard.RIGHT)) { Sphere.Resume(); } }