Animation#setFrame()

setFrame(frameId, useLocalFrameIndex)

Sets this animations playback to a given frame with the given ID.

Parameters
Name Type Argument Default Description
frameId string | number <optional>

The identifier of the frame to set. Can be the name of the frame, the sprite index of the frame, or the animation-local frame index.

useLocalFrameIndex boolean <optional>
false

If you provide a number for frameId, should it use the numeric indexes of the frameData, or the 0-indexed frame index local to the animation.

Source code: animation/Animation.js (Line 276)
doc_phaser
2017-02-14 10:35:58
Comments
Leave a Comment

Please login to continue.