I'm trying to adjust some effects but I need to use SKEffectNode(), so I wrote the following code:
let rocketPath = NSBundle.mainBundle().pathForResource("Rocket", ofType: "sks")!
let rocketFireEmitter = NSKeyedUnarchiver.unarchiveObjectWithFile(rocketPath) as! SKEmitterNode
//playerNode.addChild(rocketFireEmitter) // #1
let firePathEffectMode = SKEffectNode()
firePathEffectMode.shouldEnableEffects = true
firePathEffectMode.addChild(rocketFireEmitter)
playerNode.addChild(firePathEffectMode) // #2
If I use the code identified as #1 - which I commented out - everything works just fine. But I need to use some effects, so I wrote instead the code block between #1 and #2. I can't see my rocket fire but neither do I receive any error.
I can't find the problem; I tried changing zPosition but to no avail.
I'm using Xcode 7 beta 6. Thanks guys!