Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The script reference "manual" is not much of a help. When I look up createTileLayer(tileCountX/tileCountY/tileSizeX/tileSizeY) it doesn't say more than it creates a new TileLayer.

But, in what unit do I specify tileSizeX/Y? Do I have to clean-up (delete) the created TileLayer when my game exits?

(There was no tag for Torque2D and I'm a little bit short on rep. points to create a new tag)

share|improve this question
up vote 0 down vote accepted

The question seems a bit stupid now when I have learned more Torque scripting. For any one else finding them self a bit confused by the "documentation" I can simply explain it this way:

All units (except GUI interface) are in Torque units meaning they are independent of screen resolution.

For clean up, all objects are maintained by the engine and doesn't need to be destroyed before the game ends. In the majority of cases the engine also do the clean up for you if you want to delete an object during the game.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.