Game Development Community

Need a way to make sceneobject flash

by Christopher Perkins · in Torque X 2D · 07/01/2010 (12:07 am) · 2 replies

I'm in a part on my project where I am just perfecting what I've got and feel that I need to make enemies flash when hit. I am however at a loss at how I would do such a thing(well not a total loss as I'm pretty sure I can easily do a shader to do it, but I'd rather stick with the default shader as TX2D editor defaults to it on everything).

Really all I want to do is make an enemy flash white for a frame or two when it's hit. Any ideas?

#1
07/01/2010 (12:56 pm)
Just create a hit animation for you enemy? Would be the easiest way to do it I think.
#2
07/01/2010 (1:51 pm)
Custom shader or colour blending using the default shader.

For a custom shader you can also create a custom material to use it and a component to apply it via the editor.