Game Development Community

TileLayer's don't display individual imageMap frames at runtime??

by Ezra · in Torque X 2D · 09/27/2009 (12:55 am) · 0 replies

I made a tileLayer and filled it with tiles, the tiles are various frames from an imageMap. It looks perfect in the TXB editor, but when I run the level all the tiles are displaying the entire imageMap, and not the single frames which were picked when editing the tileLayer.

is this a bug / lacking feature, or some undocumented property somewhere I must change?

I say undocumented because I can't find any mention of T2DTileMap or T2DTileLayer in the TX2D documentation, aside from the Tile Map editor rollout.

*edit*

Also Animations used as Tiles are not displaying when the game runs, the animated tiles are showing up in editor wonderfully, but in game they do not appear.

Is there a way to get them working, or are they planned to be supported soon?

*edit 2*

I realize I shouldn't be able to assign the animations to the tile layer, it is because I imported TGB data and it found the Tile Layer brushes I was using. It would be really cool to have the same TileMap functionality in TX2D that TGB does.

*edit 3* !!

After some messing around, I noticed that TextureDivider type="GarageGames.Torque.Materials.GenericTextureDivider"> will work (using a color key, or just manually)
so I got that working... although there may be issues with texture seams