Table of Contents

Method Pause

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

Pause(bool)

Paused this AnimatedSprite and prevents it from being updated until it is unpaused.

public bool Pause(bool resetFrameDuration = false)

Parameters

resetFrameDuration bool

A value that indicates whether the CurrentFrameTimeRemaining should be reset. When this method returns false, this indicates the CurrentFrameTimeRemaining was not reset even if this was specified as true.

Returns

bool

true if this AnimatedSprite was successfully paused; otherwise, false. This method returns false if this AnimatedSprite is not currently animating or if it is already paused.