0

I'm working on a game for android using Cocos2D-android and when I'm trying to use the CCQuadParticleSystem class, the CTOR just returns null. I spent hours searching for an example or a tutorial on this and all I found was other people asking about the same exact thing. It just returns null. I have my .plist file in my assets folder - the same file which is working just great with Cocos2D-X and IOS. According to the good people at github.com it should work so I must be doing something wrong but like I said... it just returns null when I call the CTOR with or without casting:

CCQuadParticleSystem p1 = (CCQuadParticleSystem) CCQuadParticleSystem.particleWithFile("fire.plist");

CCParticleSystem p2 = CCQuadParticleSystem.particleWithFile("fire.plist");

Please, anyone ???

if It's of use, this is the .plist file I'm working with

Amit Farkash
  • 329
  • 3
  • 16
  • Ok, so according to the project's home at: http://code.google.com/p/cocos2d-android-1/ you should create particle systems outside of CTORs. Well I did and it still doesn't work ! – Amit Farkash May 02 '13 at 17:39

1 Answers1

1

Have a look on this example :

link for plist

you'll get the way how to handle plist file .