Sprite Kit particles or video

Discussion in 'iOS Programming' started by devQ, Aug 11, 2014.

  1. devQ macrumors newbie

    Aug 11, 2014

    I was wondering if someone could help me with following problem. I want to create something like this http://www.shutterstock.com/video/clip-4668353-stock-footage-flickering-particles-loop-blue.html but only 2 options crossed my mind:

    1. with sprite kit it's probably impossible. If there is too many particles, frame rate is killed, and if there's too few it doesn't look good. Another problem is that I want to scale up and then scale down particles, but particle editor offers only one direction at a time.

    2. with video it is possible but I don't know if it's a good idea. Also don't know which resolution to choose for both iPhone and iPad, which format and size. It can drain battery quickly probably and use too much space.

    Every advice is appreciated and I would love to hear some suggestions.
  2. rjain, Aug 12, 2014
    Last edited by a moderator: Aug 12, 2014

    rjain macrumors newbie

    Aug 4, 2014
    RE: Sprite Kit particles or video

    You might like to user SKEmitterNode.

    Check out this video:

  3. devQ thread starter macrumors newbie

    Aug 11, 2014
    Yeah, that's how I did it. But it won't work. I'm probably going to use video or simplify particles with editor.
  4. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    It won't work? Care to elaborate?
  5. devQ thread starter macrumors newbie

    Aug 11, 2014
    Sure. Using SKEmitterNode is probably best (and proper ) way to do it, but since I use too many particles and movement, frame rate is low and everything is choppy. With firefly particles only, it works fine, but adding smoke to whole screen kills everything.
  6. chrono1081 macrumors 604


    Jan 26, 2008
    Isla Nublar
    Are you trying this on an actual device or just the simulator?
  7. omenatarhuri macrumors 6502a

    Feb 9, 2010
    This is a valid point, at least for me the simulator gives awful performance even with a couple image sprites. iPad Mini with Retina however runs perfectly at 60fps.
  8. devQ thread starter macrumors newbie

    Aug 11, 2014
    At that time it was simulator :) I even managed to freeze my mac in one iteration. :D

    I decided to use video at the end.

Share This Page