This command resumes a paused movement.
object.Resume();
The object resumes moving after the pause command has been called.
Familiarize yourself with the Pause command, earlier in this appendix.
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(); } }