PauseThisScreen
Introduction
Example Usage - Pausing With the Keyboard
void CustomInitialize()
{
// start spinning the sprite
SpriteInstance.RotationZVelocity = 3;
}
void CustomActivity(bool firstTimeCalled)
{
FlatRedBall.Debugging.Debugger.Write("IsPaused: " + this.IsPaused);
if (InputManager.Xbox360GamePads[0].ButtonPushed(Xbox360GamePad.Button.Start))
{
if(IsPaused)
{
UnpauseThisScreen();
}
else
{
PauseThisScreen();
}
}
}
Applying Movement After Pause
Example - Applying Movement After Pause

Example - Playing Gum Animations After Pausing

InstructionManager.ObjectsIgnoringPausing
Example - Playing Gum Animations when Paused

Last updated
Was this helpful?