Cache#getFrameByIndex()

getFrameByIndex(key, index, cache) → {Phaser.Frame}

Get a single frame out of a frameData set by key.

Parameters
Name Type Argument Default Description
key string

Asset key of the frame data to retrieve from the Cache.

index number

The index of the frame you want to get.

cache integer <optional>
Phaser.Cache.IMAGE

The cache to search. One of the Cache consts such as Phaser.Cache.IMAGE or Phaser.Cache.SOUND.

Returns

The frame object.

Source code: loader/Cache.js (Line 1536)
doc_phaser
2017-02-14 10:40:14
Comments
Leave a Comment

Please login to continue.