sugard00dles / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

ParticleEmitters stop working after scene replace and go back again #103

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open a scene and start a particleEmitter
2. replace Scene with another
3. Go back to first scene

What is the expected output? What do you see instead?
After leaving a scene and go back to the scene all particle emitters stopped 
and not willing to work again (resetsystem etc. don't help)

When I create the particleEmitters in "onenter" they work of course even after 
a scene change, but emitters build in the scene constructor don't work.

Original issue reported on code.google.com by erdenkri...@googlemail.com on 14 Nov 2011 at 11:24

GoogleCodeExporter commented 8 years ago
I find a solution for this. When I call emitter.scheduleUpdate() in onEnter of 
the scene, the emitter starts to continue working when the scene becomes actual 
again.

Original comment by erdenkri...@googlemail.com on 17 Nov 2011 at 11:59