OnPause
OnPause

Called when the user pauses the game.

myJAM.OnPause=function( JAM );

Parameters
  • JAM
    The JAM object which is currently running.
Comments

The game can be paused in several ways; through the main menu & menu short-cut (usually Ctrl+P), by pressing the PAUSE button on modern keyboards, and by unfocusing the window.
You may want to use OnPause to hide parts of a puzzle game, or to minimise the window when the game isn't being played.

See also
JAM:OnResume



JAM © 2005 no one in partiular
Project started by David Evans in 2005