Creates an action that adjusts the size of a sprite.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The amount to add to the sprite’s width.
The amount to add to the sprite’s height.
The duration of the animation.
This action can only be executed by a
SKSpriteNode object. When the action executes, the sprite’s
size property animates to its new value.
This action is reversible; the reverse is created as if the following code is executed:
Animating a Node's Texture
Creates an action that changes a sprite’s texture, possibly resizing the sprite.