Game Development Community

Maxium Layers in a Level

by Felix Cruz · in Torque 2D Professional · 02/02/2014 (11:08 am) · 2 replies

Hey everyone, a couple of us had a question about the amount of layers that can be put into a level. We're currently working on a game project that will involve a lot of interactive backgrounds. Is there a limited amount of layers that can be placed in a single level or can we use unlimited amounts layers?

About the author

Owner of new up and coming inde game company, Shadow Demon Entertainment.


#1
02/02/2014 (12:24 pm)
You can use up to 32 layers.

In addition to that, you can set the drawing order of objects within a layer using the function setSceneLayerDepth(x) where x is any number you choose.

All functions related to that functionality are found here

Make sure you read the wiki entry about Batching to weigh the pros and cons of using this system in regards to Batching.
#2
02/02/2014 (6:43 pm)
Awesome, this will definitely help. Thanks for the help. Very much appreciated my friend.