Game Development Community

TGB Particles Not Working In Game

by DougieBoy · in Torque Game Builder · 09/21/2009 (10:29 pm) · 4 replies

I got TGB and I used the particle fix under your resources, when I am going through the tutorial and I created my Cloud, then I added the rain particle effect. I clicked Play Game and I see the cloud, but no rain. But I see all my particle effects under the Create tab, so I have that part fixed, I just can't see them in my game.

Please Help

About the author


#1
09/22/2009 (12:54 pm)
Check console (or console.log file) if you have assets (ImageMaps, animations) loaded during game initialization.
#2
09/22/2009 (5:21 pm)
I looked in the console.log and found this

"t2dParticleEmitter::setImageMap() - t2dImageMapDatablock Datablock is invalid! (raindropImageMap)"

#3
09/22/2009 (6:06 pm)
I figured it out. In the new resourceDatabase.cs file you get when you download the Particle fix, it set the cellwidth of the raindropimagemap to 32 where the the raindrop.png file is actually a width of 64. So just be setting cellwidth = 32 to cellwidth = 64 made it work.
#4
04/27/2010 (4:22 pm)
I did this, but the result is not good. The rain appears in the executable, but it is not like it is in the editor, the rain particles seems too blurry.

Did anyone have better results?