gs.TilemapRenderInfo Class
A tilemap-render info holds more information about the tilemap being rendered on screen. This class is actually for internal usage only. The only exception is if you work with custom GLSL shaders.
If you want to learn more about why certain classes of the Basic Engine are hidden and not editable, read the Basic Engine chapter in Help File.
Constructor
gs.TilemapRenderInfo
()
Item Index
Properties
Properties
autotileAreaStart
Number
The x-position of the "red-line" separating the regular-tiles and special-tiles area. Check Scripter's Guide in Help-File for more info.
Default: 0
autotileOffset
Number
The auto/animated/special animation frame-number to display. This is multiplied with the width of a special-tile to determine which animation-frame/tile to display. Let's say an animated tile is 32x32 with 4 animation-frames, then the calculation is:
source-rectangle.x = regular-tiles-area.x + autotileOffset * 32
Default: 0
dataBitmap
gs.Bitmap
A bitmap object which has the same size as the map. Each pixel describes a single tile. The red-component of the pixel stores the column and the green-component stores the row of the tile on the tileset.
Default: null
ox
Number
The offset-value on x-axis. Change this value to scroll the tilemap.
Default: 0
oy
Number
The offset-value on y-axis. Change this value to scroll the tilemap.
Default: 0
tileSize
Number
The tile-size in pixels.
Default: 32