Game Development Community

T2DTileLayer.Tiles changed to?

by Mark Vicuna · in Torque X 2D · 03/29/2007 (10:10 pm) · 2 replies

Hi,

Whats the new method for adding tiles to a TileLayer?

Thanks,
MarkV.

#1
03/31/2007 (12:30 pm)
Tile editing in TGBX is kind of "tehsuck" right now. I made a little tool that would modify the .lyr xml directly. That worked pretty good :D

As per your question though, i think you can use the

T2DTileObject PickTileByGridCoords(int x, int y)

or

public T2DTileObject PickTile(Vector2 worldPos)


to get a reference to a tile at that location that you can then manipulate...
#2
04/01/2007 (11:19 am)
Oops, I meant to move this to the TorqueX folders since its an issue with the TX engine not TGBX directly.

Thanks for the tip though. I downgraded back to 1.1.3 since a few of the issues I had with TileLayers in the new version made impossible to continue. I'll give it another try. Maybe it was something simple I was missing.