Blockland Forums > Modification Help
Animated textures in particles, do they work?
<< < (2/2)
Swollow:

--- Quote from: Conan on October 02, 2017, 12:18:33 PM ---wait, what?! viso, can you post a gif?

--- End quote ---
it looks real bad, but im pretty sure its the only addon in blockland with one so, its the best animated particles in blockland
-Jetz-:

--- Quote from: Swollow on October 03, 2017, 04:19:16 AM ---it looks real bad, but im pretty sure its the only addon in blockland with one so, its the best animated particles in blockland

--- End quote ---

Objection!

The Shock Hammer utilizes animated particles to make an electricity effect.


--- Code: ---datablock ParticleData(shockHammerExplosionBlastWaveParticle)
{
dragCoefficient = 8;
gravityCoefficient = 0.0;
inheritedVelFactor = 0.2;
constantAcceleration = 0.0;

spinSpeed = 80;
spinRandomMin = -80;
spinRandomMax = 80;

lifetimeMS = 800;
lifetimeVarianceMS = 300;

//Relevant stuff:
textureName = "./grey.png"; //This automatically gets replaced with animTexName[0]
animTexName[0] = "./Spark1.png";
animTexName[1] = "./Spark2.png";
animTexName[2] = "./Spark3.png";
animTexName[3] = "./Spark4.png";
animateTexture = true;
framesPerSec = 30;
//numFrames = 4; //This variable does not seem to function. It is documented in the Torque guide, but number of frames seems to be detected automatically.

useInvAlpha = false;

colors[0] = "0.1 0.4 0.8 0.9";
colors[1] = "0.3 0.5 1.0 0.4";
sizes[0] = 1.0;
sizes[1] = 2.5;
times[0] = 0.6;
times[1] = 1.0;
};

//The other animTexName fields don't automatically download as far as I'm aware, so these dummy datablocks are created to force them to.
datablock ParticleData(Spark2TextureDownloader : shockHammerExplosionBlastWaveParticle)
{
textureName = "./Spark2.png";
};
datablock ParticleData(Spark3TextureDownloader : shockHammerExplosionBlastWaveParticle)
{
textureName = "./Spark3.png";
};
datablock ParticleData(Spark4TextureDownloader : shockHammerExplosionBlastWaveParticle)
{
textureName = "./Spark4.png";
};

--- End code ---
Swollow:
*clears throat* duck cannons particle animation are still the best
just kidding ily jetz
Navigation
Message Index
Previous page

Go to full version