SKAction
SKAction is a class in the SpriteKit framework that represents an animation or motion to be performed by an SKNode. An action encapsulates changes to a node’s properties over a specified duration, enabling movement, rotation, scaling, fading, resizing, color changes, and more without manual frame-by-frame updates. Actions can be combined and reused to create complex animations.
Common single actions include moving a node to a position, moving by an offset, rotating by an
Actions can be composed to run in sequence, in parallel as a group, or repeated a fixed
Execution is performed by calling a node’s run(action) method, optionally with a key or a completion block.