Resume


This command resumes a paused movement.

 object.Resume(); 

The object resumes moving after the pause command has been called.

Notes

Familiarize yourself with the Pause command, earlier in this appendix.

Sample Code

 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();    }   } 



Elementary Game Programming and Simulators Using Jamagic
Elementary Game Programming & Simulations Using Jamagic (Charles River Media Game Development)
ISBN: 1584502614
EAN: 2147483647
Year: 2002
Pages: 105
Authors: Sergio Perez

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net