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
2
votes
2 answers

Have my particles let trail of there movement on the scene in SpriteKit even in a child node

I want the same effect than in this project But my particles SKEmitterNode isn't directly in the Scene, but in a child node. My particles are reactor effect behind my spaceship, and I want it to leave a trail on the scene as the SpaceShip node…
Tancrede Chazallet
  • 7,035
  • 6
  • 41
  • 62
2
votes
0 answers

iOS. SpriteKit: How to use the same emitter in all game scenes

I'm using SpriteKit and Xcode 6 to develop a game. I have a single sks file that I want to use in all game scenes. If I add the emitter into each scene after I present it, the emitter stops in the old scene and stars new in the new scene, because it…
suyama
  • 262
  • 2
  • 15
2
votes
0 answers

spritekit - SKEmitterNode particle scale, coords, etc with ipad vs iphone

When I use SKEmitterNode in a universal app, i want my particle effects to look the same regardless of screen size. I noticed when i use the particle editor, my particle effects will be half size on a retina ipad. In my code I have to resort to…
hamobi
  • 7,940
  • 4
  • 35
  • 64
2
votes
1 answer

Adding Emitter Node to sks file and using it - XCode 6.0 + swift

I am trying to learn how to use SKEmitterNode, for which I created a SpriteKit project. By default it provides a GameScene.sks file, selecting which it displays a list of objects in library which includes an EmitterNode. I tried to drag EmitterNode…
Devarshi
  • 16,440
  • 13
  • 72
  • 125
2
votes
2 answers

How to use a SKEmitterNode in sprite kit to achieve a "fog of war" effect?

I'm trying to use a SKEmitterNode to create a shader, kind of like in Pokemon when you are in a cave: http://www.serebii.net/pokearth/maps/johto-hgss/38-route31.png Here is the code I have so far : NSString *burstPath = [[NSBundle mainBundle]…
2
votes
1 answer

Particle Effects Disappear When Transitioning to a New SKScene

I'm working on a game using Sprite Kit. I have a particle effect that runs when an object collides with another object; however, this particle effect seems to disappear when I add a transition to another SKScene. What's causing this disappearance,…
Alexyuiop
  • 813
  • 2
  • 10
  • 25
2
votes
2 answers

Adding an SKEmitter node into my game

i get an error that reads "no visible @interface for viewcontroller declares the selector addChild" basicly im trying to add my skEmitter Node into my game. -(void) didMoveToView:(SKView *) view{ NSString *path = [[NSBundle mainBundle]…
Colangelo
  • 43
  • 9
2
votes
0 answers

applying masks to SKEmitterNodes

May be some one can give me a hand… I’m trying to add a couple of SKEmitterNodes in their own SKCropNodes. My code: // left emitter node NSString *path = [[NSBundle mainBundle] pathForResource:@"LeftParticle" ofType:@"sks"]; …
Albert Perez
  • 121
  • 5
2
votes
1 answer

SKAction fade out with duration

I try to add a Emmiter node when I touch on the Screen and remove it (fade it out) when i release my finger. But I want the first node to stay on the screen. What am I doing wrong? NSMutableArray *childs = [NSMutableArray…
Sam
  • 819
  • 2
  • 7
  • 17
2
votes
1 answer

How to create an SKEmitterNode with particles already formed

I am trying to create a star field with an SKEmitterNode, and I have gotten it to work. The problem is that when it is first added to the scene, it takes a few seconds to fill the screen. I want it to be so that as soon as the node is added to the…
Andrew97p
  • 565
  • 6
  • 11
2
votes
1 answer

Is it possible to apply a filter on a SKEmitterNode?

I have a scene with an SKEmitterNode which works fine when directly added to the scene. However, I want to add a SKEffectNode on the scene to blur the emitter particles. This is how it looks. @implementation MyScene -(id)initWithSize:(CGSize)size…
Abhinit
  • 1,016
  • 7
  • 13
2
votes
2 answers

How to turn off user interaction of child node when parent node has it enabled in SpriteKit

I have an SKNode that has user interaction enabled and I am adding an SKEmitterNode to that and I want the user interaction to be disabled for just the child. This code does not work. SKNode* parentNode = [[SKNode alloc]…
miek
  • 743
  • 1
  • 8
  • 15
1
vote
2 answers

Is it possible to animate SKTexture with images?

I created a SKEmitterNode and I want the particleTexture property to animate images. This is what I'm trying, but it is only showing the first image: let animationImages = [UIImage(named: "image1")!, UIImage(named: "image2")!] let imageView =…
Joe
  • 355
  • 1
  • 10
1
vote
1 answer

Manipulate particles spawned by SKEmitterNode

I want to emit particles using SKEmitterNode within a macOS app to create an effect similar to rain. No problem so far. What I’m not able to figure out is: Is it possible to let these emitted particles respond i.e. to mouseEvents, and if so, how?
ixany
  • 5,433
  • 9
  • 41
  • 65
1
vote
1 answer

Run SKemitter Once?

Is there a way to only run a SKemitter one time? I have a explosion when it is colliding with another node. The problem is that the explosion happens multiple times since it hits multiple times. How would I go about only running it once time?
Matt Cantrelle
  • 151
  • 1
  • 8