Function TilesetData.tileOffsetX

Find the pixel position of a tile within this tileset.

Throws if gid is out of range for this tileset.

Prototype

int tileOffsetX(
  uint gid
);

Parameters

NameDescription
gid GID of tile. Does not need to be cleaned of flags.

Returns

space between left side of image and left side of tile (pixels)

Authors

rcorre

Copyright

Copyright © 2015, Ryan Roden-Corrent

License

MIT