Skip to main content

MapCoordinatesToIndex

Callable

  • MapCoordinatesToIndex(x, y): number

  • Gets coordinates in X and Y and returns the corresponding index number for the tile and object list


    Parameters

    • x: number

      X-coordinate to be translated

    • y: number

      Y-coordinate to be translated

    Returns number

    • Index number for the tile and object lists