update(_:for:)
Tells you to perform any app specific logic to update your scene.
Declaration
optional func update(_ currentTime: TimeInterval, for scene: SKScene)Parameters
- currentTime:
The current system time.
- scene:
The scene that is being animated.
Mentioned in
Discussion
Do not call this method directly; it is called by the system exactly once per frame, so long as the scene is presented in a view and is not paused. This is the first method called when animating the scene, before any actions are evaluated and before any physics are simulated.