Jump to content

Tile ID


Recommended Posts

I try to get the tile ID of the tile under the mouse pointer by using getTile() to compare to a tile's ID of my choice, but that don't work as expected.


I know it's possible with some collisions detections, but how to do that with the mouse pointer?

Edit: I don't want the ID, but the type of tile!


Edit: So I've found what I want: getTile(X,Y,'layer-name').index, that works!

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...