I am getting this error after about 80 shots of a laser using a controlled Timer Interval so it fires every 0.2 seconds.
* Terminating app due to uncaught exception 'Failed to Load Resource', reason: 'Resource squish.mp3 can not be loaded' * First throw call stack:
Here is the code I use to play the sound and create the laser. squish.mp3 is an audio file that is played when an object is destroyed. Can anyone help? Is SKAction not very good for playing sound?
SKAction *sound = [SKAction playSoundFileNamed:@"lazer.mp3" waitForCompletion:NO];
[self runAction:sound];
[self removeActionForKey:@"sound"];
SKSpriteNode *laser = [SKSpriteNode spriteNodeWithImageNamed:@"fire"];