Skip to content
ClassTweens & Motion@public

FlxAngleTween

Tweens a numeric angle and optionally writes it to an object.

ts
export declare class FlxAngleTween extends FlxTween

Properties

PropertyModifiersTypeDescription
angle-number-
sprite-FlxObject | null-

Methods

destroy()

ts
destroy(): void

Returns: void

tween()

ts
tween(fromAngle: number, toAngle: number, duration: number, sprite?: FlxObject | null): this

Parameters:

ParameterTypeDescription
fromAnglenumber-
toAnglenumber-
durationnumber-
spriteFlxObject | null-

Returns: this

Released under the MIT License.