Game Development Community

Can someone explain to me Tilemap Layers?

by Charlie Talley · in Torque X 2D · 06/30/2009 (9:45 pm) · 1 replies

Are these layers separate from the layers of the scene, or are they just a way of assigning a tilemap to a scene layer? (The latter seems redundant, so I'm rather confused as to why and what tilemap layers are for)

#1
07/01/2009 (8:43 am)
I believe a "TileLayer" is simply what they call an instance of a TileMap. That is, each time you drag a TileMap from the Create tab of TXB onto the scene, each one of those is a TileLayer. It's really an unfortunate usage of the word "layer" because it really has nothing to do with the Layers of the scene, which are used to sort the items front-to-back.

A "TileLayer" can go into any "Layer" just like a sprite, animation, etc.

Hope that clears it up.