hello guys my question is about how can make my hero character make a collsion with the tile what have the treasure chest ( the treasure chest is a object from a tilemap not a sprite )
Develop games in your browser. Powerful, performant & highly capable.
Collision checks will not work here. You need to check tile at hero position:
On every tick
Compare tile at PositionToTileX(Hero.x) , PositionToTileY(Hero.y)