MCPcopy Create free account
hub / github.com/melonjs/melonJS / pause

Method pause

packages/melonjs/src/renderable/sprite.js:438–441  ·  view source on GitHub ↗

* Pause the current animation or video, freezing the current frame. Resume * with Sprite#play. * @returns {Sprite} Reference to this object for method chaining

()

Source from the content-addressed store, hash-verified

436 * @returns {Sprite} Reference to this object for method chaining
437 */
438 pause() {
439 this.animationpause = true;
440 return this;
441 }
442
443 /**
444 * Stop the current animation or video and reset it to the first frame

Callers 12

freezeFunction · 0.45
constructorMethod · 0.45
stopMethod · 0.45
updateMethod · 0.45
destroyMethod · 0.45
sprite.spec.jsFile · 0.45
gltf_model.spec.jsFile · 0.45
audio.spec.jsFile · 0.45
connectCapacitorFunction · 0.45
setupSceneFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected