SetTerrainTileLayerBlend()

Syntax

SetTerrainTileLayerBlend(#Terrain, TileX, TileY, Layer, x, y, Value)
Description
Changes the terrain tile layer blend value at the specified position. The change will not be reflected immediately, UpdateTerrainTileLayerBlend() has to be called once all the modifications are done.

Parameters

#Terrain The terrain to use.
TileX The tile 'x' index.
TileY The tile 'y' index.
Layer The layer index. The first layer index starts from 0. The maximum number of layers is defined when creating the terrain, see CreateTerrain().
x, y The position in the tile (in pixels) to set the blend value.
Value The new terrain tile layer blend value to set at the specified position. The blend value ranges from 0.0 (fully transparent) to 1.0 (fully opaque).

Return value

None.

See Also

CreateTerrain()

Supported OS

All

<- SetTerrainTileHeightAtPoint() - Terrain Index - SetupTerrains() ->