Questions tagged [skemitternode]

A SKEmitterNode object is a node that automatically creates and renders small particle sprites. Particle sprites are privately owned by Sprite Kit—your game cannot access the generated sprites. For example, this means you cannot add physics shapes to particles. Emitter nodes are often used to create smoke, fire, sparks, and other particle effects. Available in iOS 7.0 and later.

155 questions
1
vote
1 answer

SKEmitterNode Causing Crash on Scene Restart

I created an SKEmitterNode to attach to my player after he dies. It's a very simple smoke one. The problem is, it is crashing the game when I either: 1) Hit the retry button and transition to the same scene, it will, at a random time, crash the…
datWooWoo
  • 843
  • 1
  • 12
  • 42
1
vote
0 answers

SKEmitterNode for starfield... sprites are not opaque

I'm working on a SpriteKit game in Swift that has a SKEmitterNode as a background rendering a star field. I'm trying to make a few of my SKSpriteNodes (but not all) opaque to the background SKEmitterNode but I can't figure out how to do it. Setting…
Richard
  • 71
  • 3
1
vote
2 answers

How can I EaseIn/Out SKEmitterNode.particleBirthRate

I'm using a SKEmitterNode to emit some particles on tap. I'm after an effect similar to the hearts in Periscope. I find that when I add the emitter it doesn't behave like it was just "turned on". That is, particles appear with full alpha far from…
VaporwareWolf
  • 10,143
  • 10
  • 54
  • 80
1
vote
1 answer

Emitter use in a skeet game (Swift)

I am new in stackoverflow and Swift both. I am doing a skeet game with Swift and SpriteKit and I would like to implement the broken ceramic effect when I touch a object. I have all about it except this effect. I have just created my "Myparticle.sks"…
Diego
  • 11
  • 2
1
vote
1 answer

Can an SKFieldNode be used to also alter the zRotation of a particle?

I'm trying to make an SKFieldNode attract water particles toward the node when using an SKEmitterNode as the particle system. When moving toward the SKFieldNode's location using a field like the radialGravityField, I want the particles to also…
Patrick Collins
  • 4,046
  • 3
  • 26
  • 29
1
vote
0 answers

Spritekit Swift particle SKEmitterNode add remove

so this is nice for create a particle, but whats the right way to remove it , after the duration, sparkEmmiter.particleLifetime do not remove it automatically let sparkEmmiter = SKEmitterNode(fileNamed: "MyParticle.sks") sparkEmmiter.position =…
1
vote
0 answers

SKEmitterNode displaying different in emulator and particle editor

I'm testing the particle system creating blue fire using "SpriteKit Particle File". The problem is that when running in the emulator the fire is displayed worse. Here you have the images. Fire in particle editor: Fire in emulator: This is the code…
Draelach
  • 531
  • 3
  • 14
1
vote
2 answers

Objective-c, SpriteKit particles not removed after action finished

I'm making a game in Xcode, with SpriteKit and I've encountered a problem while working with particles. Method of Initializing SKEmitterNode: -(SKEmitterNode *)newExplosionEmitter { NSString *explosionPath = [[NSBundle mainBundle]…
1
vote
0 answers

Objective C - SKEmitterNode position range

Question is how to define a non-rectangular shape for emitter node position range? By position range I mean this: emitter.particlePositionRange = CGVectorMake(50,75); Is there some workaround to make this area triangular instead of rectangular?
Whirlwind
  • 14,286
  • 11
  • 68
  • 157
1
vote
1 answer

Detecting when SKEmitterNode particle makes contact with another SKNode

Does anyone know how I can detect when an SKEmitterNode particle makes contact with a SKNode in the SKScene? I want to apply a little force to the SKNode when a particle makes contact with it for a 2D game I'm creating.
SamoanProgrammer
  • 954
  • 4
  • 13
  • 27
0
votes
0 answers

Calling removeChild() or removeAllChildren() does not immediately redraw the parent without the child?

Calling removeChild() or removeAllChildren() does not immediately redraw the parent without the child? I call the following in my GameScene within its didBegin function when two bodies collide: func markStake(theUStake: SKSpriteNode) { …
anon
0
votes
1 answer

How to make SKEmitter particles stay relative to the background when I move my SKEmitterNode around the screen?

I feel like this should be a very simple question, but I looked around and it seems to just be working for everybody automatically. But for some reason, when I move the particle emitter around the screen, the particles move with it, and there is no…
0
votes
1 answer

Lighting a SpriteKit SKEmitterNode

I have a SpriteKit game in which there's an SKEmitterNode. In the process of lighting the scene with an SKLightNode, I noticed that SKEmitterNode does not have the lightingBitMask property required for lighting. An SKSpriteNode, for example, is…
West1
  • 1,430
  • 16
  • 27
0
votes
0 answers

iOS/SpriteKit : need explanation about SKEmitterNode location

I'm adding a simple emitter node this way: class ViewController: UIViewController { override func viewWillAppear(_ animated: Bool) { self.addParticles() } func addParticles() { if let emitterNode =…
Another Dude
  • 1,204
  • 4
  • 15
  • 33
0
votes
1 answer

setting background color hides SKEmitterNode

How can I have a white background and use SKEmitterNode in SpriteKit? The emitter disappears if I set the background color of the SKScene. On the default black background I can see the red particles (when I comment out "backgroundColor = .white" in…