Sets the texture and frame this Game Object will use to render with.
Textures are referenced by their string-based keys, as stored in the Texture Manager.
name | type | arguments | description |
---|---|---|---|
key | string |
The key of the texture to be used, as stored in the Texture Manager. |
|
frame | string | number | <optional> |
The name or index of the frame within the Texture. |
This Game Object instance.