Clearing Particle Candy Particles

Blitz3D Forums/Blitz3D Programming/Clearing Particle Candy Particles

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I occasionally need to destroy every active Particle Candy Particle. When I do, I call a function which does this :


Function Clear_All_Particles()

   DebugLog "CLEARING PARTICLES"
   ClearParticles()
   UpdateParticles()

End Function



Now weird thing.. sometimes it works, sometimes it doesn't. Sometimes everything clears and is perfect. Sometimes I get a bunch of static particles ( because I stop updating them.. they're not supposed to be there. )

Any ideas?