Game Development Community

Max Layers Supported

by Dave Calabrese · in Torque Game Builder · 03/20/2005 (6:16 am) · 1 replies

Was thinking I needed to up the maximum count of layers for my game from 32 to 60, but then I saw this in the engine code...

maxLayersSupported = 32,		// Wow; don't even be tempted to change this!


Damnit Melv, I'm tempted... tempted I tell ya! ;)


But since I want this game to actually work, I think I will just keep that at 32 and use creative scripting to work around it. =)

Cute comment, though... just thought that was too funny that I was looking for that exact thing and found that Melv had already thought of it. Man, when I said you guys thought of everything for this engine, I guess I should have been a little MORE literal!!

-Dave C.

#1
03/20/2005 (6:39 am)
Resist the dark side. Work with T2D, it is a powerful ally young jedi! :)

Seriously though, you should be able to change it without problems as there shouldn't be any explicit references to having 32 layers in there. Hell, it's worth doing to just check that it doesn't die horribly!

You'll just find that you can't select layers 32+ using the mask functions for rendering and collisions, something I'd like to address in the next few months. There'd only be a trivial performance impact having lots more layers.

- Melv.