Sample_Director_Class bug

lib_particle_candy.lua is v1.0.13

In the Sample_Director_Class, if both screen1.lua and screen2.lua contains Particles, the particle is disappeared after changeScene. [import]uid: 12088 topic_id: 11715 reply_id: 311715[/import]

@ yuewah It’s not a bug.

screen1.lua has the following cleanup code.

function clean ( event )
Particles.CleanUp()
end

Director calls the cleanup function from 1st file AFTER loading the the screen2.lua, So running the Particles.CleanUp() command kills all the particles in memory (both from screen1 & 2).

You may either call the particles cleanup before the screen change or update the clean function to only remove particles from screen1 individually, which means not using the Particles.CleanUp() command. [import]uid: 10478 topic_id: 11715 reply_id: 42627[/import]