Game Development Community

Passing Through Layers

by Jon Jorajuria · in Torque Game Builder · 11/27/2006 (4:55 pm) · 2 replies

I have an animation that I need to have pass through various layers in TGB. Basically it needs to start at layer 4 pass through to layer 0 and end at layer 4. Thanks in advance for your help.

#1
11/27/2006 (8:02 pm)
If it's an actual animation and there are specific frames that you want the sprite to appear on specific layers you could enable the onFrameChange callback when you want the layers to change and set the layer based on the animation frame in the callback. For efficiency, you should try to make sure that the callback is only enabled when you need to check frames.
#2
11/27/2006 (8:08 pm)
Thanks Thomas