Pause Game by Syncaidius27th Jun 2005 5:09
|
---|
Summary Shows how to pause/freeze a game. Description This code is very basic. It only demonstrates how to pause/freeze a game. Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com `Set the sync on and sync rate commands Sync On : Sync Rate 60 : Set Display Mode 800,600,32 `Project: Simple Pause Game Command `We will use a rotating cube for this example Make Object Cube 1,10 Do `User Information Center Text Screen Width()/2,0,"Press the P key to pause and unpause the game" `Rotate The Cube Turn Object left 1,0.5 `If the P key is pressed the game will pause If Inkey$()="p" wait key wait 200 Endif sync loop |