# Programmatic particle systems

**URL:** <https://forums.kodeco.com/t/programmatic-particle-systems/15836>\
**Category:** Sprite Kit\
**Created:** [June 12, 2016, 1:48pm UTC](https://forums.kodeco.com/t/programmatic-particle-systems/15836 "2016-06-12T13:48:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rvmola](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@rvmola](https://forums.kodeco.com/u/rvmola)\
**Post date:** [June 12, 2016, 1:48pm UTC](https://forums.kodeco.com/t/programmatic-particle-systems/15836/1 "2016-06-12T13:48:38Z")

</div>

Hi team , I made some adjustments to update xblaster mini game to swift 2.0 , but I’m still having one error like…

 ![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/3/6/361ee84d03f1f7530ffdd452401965644f184d00.png)

I don’t understand why this message occours

---

<div class="post-metadata">

**Author:** ![jgnovak](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jgnovak/32/70660_2.png) [@jgnovak](https://forums.kodeco.com/u/jgnovak)\
**Post date:** [June 13, 2016, 9:34pm UTC](https://forums.kodeco.com/t/programmatic-particle-systems/15836/2 "2016-06-13T21:34:57Z")

</div>

In Swift 2.0 that would be written as…

```
func starfieldEmitterNode(speed speed: CGFloat, lifetime: CGFloat, scale: CGFloat, birthRate: CGFloat) -> SKEmitterNode {
}

```

Alternatively you could incorporate it into the name.

```
func starfieldEmitterNodeWithSpeed(speed: CGFloat, lifetime: CGFloat, scale: CGFloat, birthRate: CGFloat) -> SKEmitterNode {
}

```

---

<div class="post-metadata">

**Author:** ![rvmola](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@rvmola](https://forums.kodeco.com/u/rvmola)\
**Post date:** [June 26, 2016, 11:35pm UTC](https://forums.kodeco.com/t/programmatic-particle-systems/15836/3 "2016-06-26T23:35:00Z")

</div>

Thanks ! Works fine …
