Lets say for example, that i want to get the tile id at 8 pixels bellow the player's y position. How would i go about doing that?
Thanks.
for exemple :
you have an actor named "Map" with tilemap Renderer , and one layer
First , you need to get the tileMap with
let map = Sup.getActor("Map").tileMapRenderer.getTileMap()
after that, you can get the TileID from your position with :
let tileID = map.getTileAt(0, Math.floor(this.actor.getX()), Math.floor(this.actor.getY()))
It's just an exemple