uchicago-mobi / 2015-Spring-Forum

1 stars 0 forks source link

SpriteKit's 'speed' property. #82

Closed JRam13 closed 9 years ago

JRam13 commented 9 years ago

Holy cow, what a lifesaver.

SKNode.h

//a speed modifier applied to all actions executed by a node and its descendants.
@property  CGFloat speed;

My use for this: Debugging (obviously it's a useful tool for anything).

Since I have long levels, I can use this to speed up the game until I reach the destination I want to. I'll call self.speed = mySpeed on my SKScene to "fast forward" until whenever. self.speed = 1 to go back to normal speed.