class flixel.tweens.motion.LinearPath extends Motion

Available on all platforms

Determines linear motion along a set of points.

Instance Fields

var distance:Float

The full length of the path.

function addPoint(?x:Float = 0, ?y:Float = 0):LinearPath

function destroy():Void

function getPoint(?index:Int = 0):FlxPoint

function setMotion(DurationOrSpeed:Float, ?UseDuration:Bool = true):LinearPath

Starts moving along the path. * *

DurationOrSpeed

Duration or speed of the movement. *

UseDuration

Whether to use the previous param as duration or speed.