Instance Method

previousLocation(in:)

Returns the previous location of the receiver in the coordinate system of the given node.

Declaration

func previousLocation(in node: SKNode) -> CGPoint

Parameters

node

A node that is a descendant of a scene presented in the window that received the touch event.

Return Value

The location of the touch in the node’s coordinate system.

See Also

Working with Touch Events in Sprite Kit

func location(in: SKNode)

Returns the current location of the receiver in the coordinate system of the given node.