Search code examples
objective-csprite-kitframe-rate

Purposely slowing down FPS Spritekit


Is it possible to purposely slow down the SpriteKit scene's FPS? I was thinking if this is possible to make debugging of my game easier.


Solution

  • You can do something like this as well (as an addition to crashoverride777's answer) by slowing down nodes or physics:

    To make nodes going into slow-mo (you can do this per node):

    self.speed = 0.2 //where self is a scene
    

    or to do the same with physics:

    self.physicsWorld.speed = 0.2 //where self is a scene