Instance Method

update:forScene:

Tells you to perform any app specific logic to update your scene.

Declaration

- (void)update:(NSTimeInterval)currentTime forScene:(SKScene *)scene;

Parameters

currentTime

The current system time.

scene

The scene that is being animated.

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.

See Also

Handling Animation Events

Use SpriteKit Objects within Scene Delegate Callbacks

Follow threading guidelines to keep your SpriteKit app thread safe.

- didEvaluateActionsForScene:

Tells you to peform any necessary logic after scene actions are evaluated.

- didSimulatePhysicsForScene:

Tells you to peform any necessary logic after physics simulations are performed.

- didApplyConstraintsForScene:

Tells you to peform any necessary logic after constraints are applied.

- didFinishUpdateForScene:

Tells you to peform any necessary logic after the scene has finished all of the steps required to process animations.