Internal method that handles the drawing a Texture Frame based on its key.
name | type | arguments | Default | 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. |
|
x | number | <optional> | 0 |
The x position to offset the Game Object by. |
y | number | <optional> | 0 |
The y position to offset the Game Object by. |
alpha | number | <optional> | 1 |
The alpha value. Only used when drawing Texture Frames to this texture. Game Objects use their own alpha. |
tint | number | <optional> | 0xffffff |
The tint color value. Only used when drawing Texture Frames to this texture. Game Objects use their own tint. WebGL only. |