API Docs for:
Show:

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

()

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

tilesetBitmap

gs.Bitmap

The tileset for the tilemap.

Default: null

tileSize

Number

The tile-size in pixels.

Default: 32