Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.