How do I get tile size at runtime?

Get help using Construct 2

Post » Sat Jan 17, 2015 7:21 am

Hi,

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!

Thanks!
B
40
S
13
G
2
Posts: 47
Reputation: 4,173

Return to How do I....?

Who is online

Users browsing this forum: MassimoF and 31 guests