chon27 Posted October 3, 2014 Report Share Posted October 3, 2014 I need to get the tile index of a concrete Tile of my map. I write this: console.log(map.getTile(xBlock, yBlock, layer2, true)); and I get: But if I write console.log(map.getTile(xBlock, yBlock, layer2, true).properties); I get an empty Object. If the index property exist why can't I get it? I don't find another method for this. Thanks. Quote Link to comment Share on other sites More sharing options...
chon27 Posted October 4, 2014 Author Report Share Posted October 4, 2014 I reply to myself: It's so easy as use: map.getTile(xBlock, yBlock, layer2, true).index Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.