moveTo(y:duration:)
Creates an action that moves a node vertically.
Declaration
class func moveTo(y: CGFloat, duration: TimeInterval) -> SKActionParameters
- y:
The y-value for the node’s new position.
- duration:
The duration of the animation.
Return Value
A new action object.
Discussion
When the action executes, the node’s position property animates from its current position to its new position.
This action is not reversible; the reverse of this action has the same duration but does not move the node.