I’ve found an interesting problem with CCParticleSystemQuad initialized from a plist file. This problem’s appeard since the last version update I think. My particles easily dissappeared. I’ve tried every possible solution but no particles were shown. Then when I use the particles from the example class (fire or fireworks), they worked well. At last I found out that the problem was with the setting up the texture. When I used the line:
my system begun to work again! When the particle is inited from the plist, there is only m_pTexture = tex;, but setTexture call is missing. CCParticleSystemQuad version of setTexture do several things except the m_pTexture initialization~~ mainly it set up the texture rectangle! This is the reason why my particle system did not work.
Can you tell me, where was the problem?
I solved it by adding setTexture() instead of m_pTexture = tex and remove the retain() call on the texture in the init method (retain is also called in the setTexture()).
Thanks a lot for help.