fx stuff

Blitz3D Forums/Blitz3D Programming/fx stuff

I just downloaded the particle candy demo and quite frankly doesn't look that great. I'm always slightly dubious about these over 'simplified' systems (which to me seem much more complex) as they must have an impact on performance. And personally, I like keeping things simple.

My own particle system has 2 commands;
Spawnparticle(x,y,z,delx,dely,delz,etc etc etc)
This creates a particle and shoots it off in the direction you want, also allows you to set how gravity effects it, it's life length, start scale, end scale, start colour, end colour and loads of other stuff.

and

Updateparticles(max_particles)
Which updates all the positions, alphas, colours etc of all the particles.

That's it.

If you want to create an explosion you create your own function
function explode (x,y,z)
spawnparticle (x,y,z,blah blah blah)
spawnparticle (x,y,z,blah blah blah)
spawnparticle (x,y,z,blah blah blah)
end function
Anyway, I'm not suggesting my system is better or worse than particle candy but to me it just makes more sense.