Skip to content
ClassTweens & Motion@public

FlxMotion

Base tween for moving an optional physics object through world space.

ts
export declare class FlxMotion extends FlxTween

Properties

PropertyModifiersTypeDescription
object-FlxObject | null-
x-number-
y-number-

Methods

destroy()

ts
destroy(): void

Returns: void

setObject()

ts
setObject(object: FlxObject): this

Parameters:

ParameterTypeDescription
objectFlxObject-

Returns: this

Released under the MIT License.