SetCloaked render problem
by Ian Omroth Hardingham · in Torque Game Engine · 03/13/2005 (5:38 am) · 0 replies
Hey everyone.
So, when a player in my game dies I want him to spawn a load of particles all around him and then fade out. I've got the particles fine, but when I use setCloaked to get the player to fade out the z sorting gets messed up and he renders in front of the particles.
Particle effects working fine:

Cloak started, z sorting messed up:

Does anyone know if this is a simple bug to fix, or if there's an alternative method to get what I need?
Any help, much appreciated.
Ian
So, when a player in my game dies I want him to spawn a load of particles all around him and then fade out. I've got the particles fine, but when I use setCloaked to get the player to fade out the z sorting gets messed up and he renders in front of the particles.
Particle effects working fine:

Cloak started, z sorting messed up:

Does anyone know if this is a simple bug to fix, or if there's an alternative method to get what I need?
Any help, much appreciated.
Ian
About the author
Designer and lead programmer on Frozen Synapse, Frozen Endzone, and Determinance. Co-owner of Mode 7 Games.