/SKSmoothCameraNode

Smooth Camera made easy using SpriteKit's SKCameraNode

Primary LanguageSwift

SKSmoothCameraNode

Swift Xcode

Smooth Camera made easy using SpriteKit's SKCameraNode.

To use it, just create a SKSmoothCameraNode and set it as your camera attribute on the scene (SKScene subclass). Instead of directly setting your camera.position to the desired position on the update or property observer, use the method setCamera(position: CGPoint) of your brand-new SKSmoothCameraNode object.

A more detailed explanation coming soon.