Table of Contents

ugBASIC User Manual

TILE PROBABILITY ✓

SYNTAX

   = TILE PROBABILITY( tileset, id )

PURPOSE

This function allows you to know the probability to which a certain tile will be produced. Note that this information is available only at the time of compilation: therefore, the parameter with the tile identifier must be a constant.

EXAMPLE

  tileProbability = TILE PROBABILITY(tileset, 29)

See also the following example files:

ABBREVIATION

 Tl PROBABILITY

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY