Game Development Community

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:
www.omroth.com/cp1.png
Cloak started, z sorting messed up:
www.omroth.com/cp2.png
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