A function defined in BBMOD_Terrain.gml
get_layer(_x, _y[, _threshold])
Retrieves the topmost splatmap layer at given coordinate.
Name | Type | Description |
---|---|---|
_x | Real |
The x coordinate to retrieve the layer at. |
_y | Real |
The y coordinate to retrieve the layer at. |
_threshold | Real |
The minimum required opacity. Defaults to 0.5. |
Real
The topmost splatmap layer at given coordinate. Returns undefined
if the coordinate is outside of the terrain or if no layer was found!
Method BBMOD_Terrain.build_layer_index needs to be called first!
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.