Questions tagged [caemittercell]

The CAEmitterCell class is available in OS X v10.6 and later, and represents one source of particles being emitted by a CAEmitterLayer object.

The CAEmitterCell class represents one source of particles being emitted by a CAEmitterLayer object. An emitter cell defines the direction and properties of the emitted particles. Emitter cells can have an array of sub-cells, which lets the particles themselves emit particles.

51 questions
3
votes
2 answers

CAEmitterLayer not Shown

I'm simply adding a UIView to my storyboard view controller and then creating a UIView class to display a particle effect. I change the UIView's class name to that of the custom class I created. The code I'm using in the UIView class does not…
Jack120
  • 213
  • 1
  • 6
  • 21
3
votes
0 answers

CAEmitterCell particle position

I have a snow falling animation using the uiview particle emitter. I am able to animate the snow in various ways thanks to much research, including changing the image content of the particles. There is a circular region where I would like to change…
Nick
  • 31
  • 1
2
votes
2 answers

creating a vertical CAEmitterLayer

I'm working on creating a CAEmitterLayer that's the height of the screen, and pushed off -X, so the CAEmitterCells travel from left (off the screen) to upper right. There's an issue I am running into where the emitterSize height property of…
Joe
  • 3,772
  • 3
  • 33
  • 64
2
votes
1 answer

Rotate CAEmitterCell content based on Animation Direction

Using CAEmitterLayer and Cell to show particles that have direction sensitive content image (an arrow). Want the content (arrow image) to point in the direction the cell is moving. Here is code for having all the arrows move from outside edge…
tiltem
  • 4,952
  • 3
  • 23
  • 26
2
votes
1 answer

CAEmitterLayer animation that leaves accurate trail along the path

I need to leave a trail with UIView that is animated with CAKeyframeAnimation Ball * ball = [[Ball alloc]init]; // customized the ball CGMutablePathRef path = CGPathCreateMutable(); // filling in the path from points. CAKeyframeAnimation *anim…
Stpn
  • 6,202
  • 7
  • 47
  • 94
2
votes
1 answer

iOS: CAEmitter Layer and EmitterCell Flips Image on iOS 6

Was playing around with CAEmitterLayer and discovered something really weird. I set up the CAEmitterLayer at the lower left corner, positioned at 45 degree (pointing towards the top right corner) and tried to shoot some arrows toward the top right…
Unheilig
  • 16,196
  • 193
  • 68
  • 98
2
votes
2 answers

CAEmitter smooth start of animation

I am trying to have a CAEmitterLayer make a kind of lightsaber animation. I want a beam of light to appear from a point and stop. My problem is that I cannot get the beginning of the animation to happen smoothly. As soon as I run the code it just…
gabriellanata
  • 3,946
  • 2
  • 21
  • 27
1
vote
1 answer

Aligning four CAEmitterLayer() on each side of view, pointing inward

I'm working on adding 4 CAEmitterLayers to a subview. Each CAEmitterLayer is a line, and will be positioned on each side. Rotation will be controlled via CGAffineTransform My problem: I can't get the .Left and .Right emitterPosition to properly line…
Joe
  • 3,772
  • 3
  • 33
  • 64
1
vote
2 answers

CAEmitterLayer, eventually, has delay when adding EmitterCells

A very bizarre issue we've been seeing (gifs below), We have a presented View Controller that has a TeamBadgeView, which is a button that emits emoji as CAEmitterCells Tapping this button lets users spam a fire emoji on their screen Dismissing…
A O
  • 5,516
  • 3
  • 33
  • 68
1
vote
0 answers

CAEmitter is positioning particles vertically in random places

My emitterShape is set as a line, which positions the cells horizontally in random places, but for some reason, it also places the cells vertically all over my screen in random places. Why? I only want the particle's start position to be somewhere…
Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90
1
vote
1 answer

CAEmitter any way to insert self-animated particles?

I have a CAEmitterCell : CAEmitterCell * spriteCell = [CAEmitterCell emitterCell]; spriteCell.contents = (id) [[UIImage imageNamed:@"emitterSprite.png"] CGImage]; I would like the sprite to be an animated png sequence (or so) instead of a single…
kursus
  • 1,396
  • 3
  • 19
  • 35
1
vote
1 answer

Can someone tell me why I get "Potential leak of an object" on CGColorCreateCopy?

Here is my code -- Compiling on Xcode 6.3 for iOS8 and above: //Create the emitter layer CAEmitterLayer *emitter = [CAEmitterLayer layer]; emitter.emitterPosition = position; emitter.emitterMode = kCAEmitterLayerOutline; emitter.emitterShape =…
Jann
  • 2,214
  • 3
  • 28
  • 45
1
vote
1 answer

CAEmitterCell with 3D rotation

I'm trying to reproduce pieces of small paper falling from top effect, using CAEmitterLayer & CAEmitterCell. So far, I got the 2D animation of it, But I'm having difficulty to make each cell to rotate when falling. How to I apply random rotation on…
Simon
  • 17,223
  • 1
  • 19
  • 23
1
vote
0 answers

CAEmitterLayer - How can I make the emiterCell particles appear all at once instead of setting the birthrate for particles per second?

This is how my emitterLayer is set up: emitterLayer.position = CGPointMake(sumIndent ,_emitterView.frame.origin.y); emitterLayer.backgroundColor = [[UIColor clearColor] CGColor]; emitterLayer.emitterPosition =…
1
vote
1 answer

iOS - CAEmitterCell using Swift

I'm trying to create a particle system for an iOS app. the app doesn't use SpriteKit, so i'm using CAEmitterLayer and CAEmitterCell to do it. In Objective - C, i initialized a CAEmitterCell this way: [CAEmitterCell emitterCell]; but in swift there…