Pixel Vision 8 CalculateIndex() Lua Tutorial
Converts an X and Y position into an index value. This is useful for finding positions in 1D arrays that represent 2D data.
Usage
CalculateIndex ( x, y, width )
Arguments
NameValueDescription
xintThe x position.
yintThe y position.
widthint...
pixelvision8.hashnode.dev3 min read