Betkowski Betkowski - 5 months ago 19
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

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.

Comments