fadeAlpha(to:duration:)
Creates an action that adjusts the alpha value of a node to a new value.
Declaration
class func fadeAlpha(to alpha: CGFloat, duration: TimeInterval) -> SKActionParameters
- alpha:
The new value of the node’s alpha.
- duration:
The duration of the animation.
Return Value
A new action object.
Discussion
When the action executes, the node’s alpha property animates to its new value.
This action is not reversible; the reverse of this action has the same duration but does not change anything.