Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

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

Ah okay, cool. Thanks! 8)