This is the code I used in iOS 8 to get the particle to appear:
func onCollision() {
let explosion = SKEmitterNode(fileNamed: "rocketExplosion")
explosion.position = rocket.position
explosion.zPosition = 100
addChild(explosion)
}
Worked fine for iOS 8 but not for iOS 9. I've read that there were problems with the particle emitters in the beta, are they still the same in GM version? Also, I tried this after a "Swift 2" tutorial but no luck:
if let explosion = SKEmitterNode(fileNamed: "rocketExplosion") {
explosion.position = rocket.position
explosion.zPosition = 100
addChild(explosion) }