I occasionally need to destroy every active Particle Candy Particle. When I do, I call a function which does this :
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?
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?