CleanUp functions

If I'm using FXLibary effects and custom effects, do I need to run FXLibary.CleanUp() and Particles.CleanUp()? Or is that redundant?

I always call the Particles.CleanUp() when the game ends and I believe you will need to call that because it does not seem to get cleaned by the standard cleaning functions you might have.

I do

1
2
3
Particles.ClearParticles()
Particles.CleanUp()
CleanOtherStuff()

Dotnaught, if you are using the FXLibrary, you should call both CleanUp's. The FXLibrary's CleanUp function just removes the sounds and preloaded particles images used by the FXLibrary, whilst Particles.CleanUp gets rid of all particles, particle types and emitters that have been created. The identical naming of both functions may be a bit confusing, but there is no relationship between them.

views:1565 update:2011/10/14 9:11:21
corona forums © 2003-2011