Betkowski Betkowski - 1 year ago 141
Swift Question

Sprite Kit/Swift Stars Effect

this is what I'd like to achieve:

enter image description here

Stars spawning randomly, resizing an image of a little dot so it seems like the "stars are glowing" in random positions.
I just started working with Swift few weeks ago, and I'm working on this cool game project, this could be a great feature, and I'm sure some of the other users could use and answer to this too.

Any ideas?

edit: And sorry for being such a newbie.

Answer Source

Consider using CAEmitterLayer, documented here. It's quite straight forward.

In case you have doubts, I have combined SpriteKit, even OpenGL with standard Core Animation without any issues.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download