fadeAlpha(by:duration:)
Creates an action that adjusts the alpha value of a node by a relative value.
Declaration
class func fadeAlpha(by factor: CGFloat, duration: TimeInterval) -> SKActionParameters
- factor:
The amount to add to the node’s alpha value.
- 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 reversible; the reverse is created as if the following code is executed: