How to hide/show layer with script?
by Will Robinson · in Torque Game Builder · 07/18/2007 (8:43 pm) · 3 replies
How do you show and hide layers with script?
About the author
#2
Basically what i want to do is when i hit left or right show a layer, and when i jump or am just standing show another layer and hide the left or right layer...
07/19/2007 (6:56 pm)
Thanks for the reply, i have no clue how to use the BIT mask.....Basically what i want to do is when i hit left or right show a layer, and when i jump or am just standing show another layer and hide the left or right layer...
#3
This will set it so that those layers are now rendered and every other layer is not. It's not quite a bit mask like you would expect but a vector like everything else in TGB.
07/20/2007 (9:42 am)
MyScene.SetRenderLayers("0 1 2");This will set it so that those layers are now rendered and every other layer is not. It's not quite a bit mask like you would expect but a vector like everything else in TGB.
Torque Owner Benjamin L. Grauer