打10-15级后崩溃

时间:2013-10-18 11:34:01

标签: ios runtime-error ccparticlesystem

我正在使用CCParticleSystemQuad来模拟爆炸效果。在设备上播放10-15级后,它崩溃了,我收到一条错误信息

Assertion failure in -[CCParticleSystemQuad initWithFile:]

并指向CCParticleSystem.m class NSAssert( dict != nil, @"Particles: file not found");

这是我的代码:

for(NSString *star in starsArray)
{
    explosion1 = [CCParticleSystemQuad particleWithFile:star];
    explosion1.position = sprite.position;
    explosion1.autoRemoveOnFinish=YES;
    explosion1.blendAdditive=GL_ZERO;
    [self addChild:explosion1 z:11];
    [explosion1 resetSystem];

}

0 个答案:

没有答案