I would find it useful to query a tilemap at runtime and get the dimensions of a tile from that particular map (i.e. tilemap.tilewidth == 32). I don't see a way to do it offhand. Does anyone know if a tilemap's tile dimensions are exposed to the event system?
I could add instance variables or global constants to define this or do some other workaround, but since the data about tile size already exists in the tilemap I'd like to retrieve it dynamically. I don't want to introduce an error-prone/manually-maintained method for tracking tile size if I don't have to!
Develop games in your browser. Powerful, performant & highly capable.