A handy camera dolly with several advanced features Thanks to Itay Keren and his amazing GDC talk "Scroll Back: The Theory and Practice of Cameras in Side-Scrollers"
Constructor
new (options:DollyOptions)
Creates a new Dolly with given options.
target:FlxObject,
?camera:FlxCamera,
?lerp:Float,
?max_velocity:{ x:Float, y:Float },
Parameters:
null | options |
---|
Methods
set_target (target:FlxObject, snap:Bool = false):Void
Sets the target for the dolly
Parameters:
target | FlxObject |
---|---|
snap | Whether or not to immediately snap dolly to target |