Special Image object that can display blocks of tiles.
Constructor
View source
Parameters:
new (texture : ImageType, width : Int = 0, height : Int = 0, clipRect : Rectangle) : Void
Constructs the TiledImage.
Parameters:
| texture | Source texture. | |
| width | The width of the image (the texture will be drawn to fill this area). | |
| height | The height of the image (the texture will be drawn to fill this area). | |
| clipRect | An optional area of the source texture to use (eg. a tile from a tileset). |
Variables
Functions
View source
Parameters:
setOffset (x : Float, y : Float) : Void
Sets the texture offset.
Parameters:
| x | The x-offset. | |
| y | The y-offset. |