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

Method stop

packages/melonjs/src/renderable/sprite3d.js:465–469  ·  view source on GitHub ↗

* Stop and reset the current animation to its first frame (see Sprite#stop). * @returns {Sprite3d} Reference to this object for method chaining

()

Source from the content-addressed store, hash-verified

463 * @returns {Sprite3d} Reference to this object for method chaining
464 */
465 stop() {
466 this.animationpause = true;
467 this._frameAnim.rewind();
468 return this;
469 }
470
471 /**
472 * Force the current animation frame index (see {@link Sprite#setAnimationFrame}).

Callers

nothing calls this directly

Calls 1

rewindMethod · 0.80

Tested by

no test coverage detected