TileSprite#setFrame()

setFrame(frame)

Sets the texture frame the Game Object uses for rendering.

This is primarily an internal method used by loadTexture, but is exposed for the use of plugins and custom classes.

Parameters
Name Type Description
frame Phaser.Frame

The Frame to be used by the texture.

Inherited From
Source code: gameobjects/components/LoadTexture.js (Line 155)
doc_phaser
2017-02-14 11:17:34
Comments
Leave a Comment

Please login to continue.