1

The SKEmitterNode in SpriteKit lets you change particle properties, but it's not clear how you change properties for specific particles.

For instance, if we want particles to radiate in a circle shape, it seems we need to dictate the angle and speed for each particle -- not specify values for particles as a group.

Is this possible?

Put another way, is it possible to use the SKEmitterNode to create animations like the one from this video at the 0:22 mark: https://www.youtube.com/watch?v=wYy2G0lVTAM

Crashalot
  • 33,605
  • 61
  • 269
  • 439
  • The only that comes to my mind is to create multiple particle systems with different properties and add them to the same node. – Ramy Al Zuhouri Jun 16 '17 at 21:24
  • 1
    You have no control over individual particles, you can only determine what they are like when they are born. (think of it like a test-tube baby, you can specify what genes you want the baby to have, but after that, the baby will grow however it feels like) – Knight0fDragon Jun 17 '17 at 01:58
  • @Knight0fDragon ok that's what it seems like, thanks for the confirmation. could you please post as an answer so you can get credit? – Crashalot Jun 17 '17 at 23:45
  • You can create that animation like a firework without control single particle – Simone Pistecchia Jun 19 '17 at 17:09
  • @SimonePistecchia can you explain how as an answer? thanks! – Crashalot Jun 19 '17 at 20:44
  • @Crashalot let me to come back to home and I'll show you. In the middle time, see this, https://www.youtube.com/watch?v=uwFFZThm6ME fire water fireworks, stars ande cloud were built with particles – Simone Pistecchia Jun 20 '17 at 10:25
  • @SimonePistecchia thanks! which animations are you referring to? there are a lot? could you kindly provide the timestamps for the animations? thanks again. – Crashalot Jun 20 '17 at 18:18
  • yes, i'll do it ASAP! – Simone Pistecchia Jun 21 '17 at 11:36

2 Answers2

2

you can do:

enter image description here

The image is a little star. setting: enter image description here

Simone Pistecchia
  • 2,746
  • 3
  • 18
  • 30
1

You have no control over individual particles, you can only determine what they are like when they are born. (think of it like a test-tube baby, you can specify what genes you want the baby to have, but after that, the baby will grow however it feels like)

At some point apple may get SKActions working on the particles so that you can do this kind of stuff, but I wouldn't hold my breath on it working anytime soon, they seem to have no care in the SpriteKit platform, just introducing new broken things to get people excited. ( I am cringing on how buggy ARKit will be)

Knight0fDragon
  • 16,609
  • 2
  • 23
  • 44