Inherits from KKBehavior : NSObject
Declared in KKCameraFollowBehavior.h

Overview

Makes the “camera” follow the node owning this behavior. The scrollingNode should be the scrolling world. The scene’s anchorPoint should be at {0.5, 0.5} to center the behavior node on the screen/window.

Tasks

Properties

scrollingNode

The scrolling node whose position should be updated based on the behavior node’s position.

@property (atomic, weak) SKNode *scrollingNode

Declared In

KKCameraFollowBehavior.h