scale(by:duration:)
Creates an action that changes the x and y scale values of a node by a relative value.
Declaration
class func scale(by scale: CGFloat, duration: TimeInterval) -> SKActionParameters
- scale:
The amount to add to the node’s x and y scale values.
- duration:
The duration of the animation.
Return Value
A new action object.
Discussion
When the action executes, the node’s xScale and yScale properties are animated to the new value.
This action is reversible; the reverse is created as if the following code is executed: