You should try to safely unwrap the particle file first, just to make sure it cannot be nil
if let particle = SKEmitterNode(fileNamed: "MagicParticle") {
particle.position = ...
addChild(particle)
}
Its strange thats its not working, looking at your pictures it seems like you do not have a typo.
Did you change the default spark.png in the particle effect?
Try cleaning your project or maybe delete the effect and create it again if it still doesn't work
As a side note, you can delete the 2 words
scene?...
You are already in a SKScene, so self is the scene and therefore you can just say
self.backgroundColor = ...
self.size = ...
or better
backgroundColor = ...
size = ...
As a general good coding practice in swift try to only use "self" when the compiler forces you too. So say
addChild(...)
instead of
self.addChild(...)