class
Godot::TweenBuilder
- Godot::TweenBuilder
- Reference
- Object
Overview
Expressive builder wrapper around Godot::Tween
Defined in:
libgodot/extensions/tween.crConstructors
Instance Method Summary
-
#animate(target : Object, prop : String | NodePath | Symbol, to val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color, duration : Float64 | ::Time::Span = 0.2, in in_duration : Float64 | ::Time::Span | Nil = nil, from from_val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color | Nil = nil, trans : Tween::TransitionType | Trans | Symbol | Int = :linear, ease : Tween::EaseType | Ease | Symbol | Int = :in_out) : PropertyTweenerStep
Animates specified target property to destination value with optional transition, easing, and starting value
-
#animate(prop : String | NodePath | Symbol, to val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color, duration : Float64 | ::Time::Span = 0.2, in in_duration : Float64 | ::Time::Span | Nil = nil, from from_val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color | Nil = nil, trans : Tween::TransitionType | Trans | Symbol | Int = :linear, ease : Tween::EaseType | Ease | Symbol | Int = :in_out) : PropertyTweenerStep
Animates owner node's property to destination value (target omitted)
-
#animate(prop : Symbol, sub_prop : Symbol, to val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color, duration : Float64 | ::Time::Span = 0.2, in in_duration : Float64 | ::Time::Span | Nil = nil, from from_val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color | Nil = nil, trans : Tween::TransitionType | Trans | Symbol | Int = :linear, ease : Tween::EaseType | Ease | Symbol | Int = :in_out) : PropertyTweenerStep
Animates owner node's sub-property using symbols (e.g.
-
#await_signal(sig : TypedSignal | SignalSubscription) : AwaitTweener
Pauses until the given signal is emitted
-
#chain : self
Calls Tween#chain and returns self
-
#chain(&block : TweenBuilder -> Void) : self
Calls Tween#chain and yields self
-
#delay(duration : Float64 | ::Time::Span) : IntervalTweenerStep
Delays the tween execution by the specified duration in seconds or ::Time::Span
-
#ease(type : Tween::EaseType | Ease | Symbol | Int) : self
Sets default easing curve type on the tween
-
#kill : self
Terminates the tween
-
#loops(count : Int = 0) : self
Configures loop iterations (0 = infinite)
- #owner : Object | Nil
-
#parallel : self
Calls Tween#parallel and returns self
-
#parallel(&block : TweenBuilder -> Void) : self
Calls Tween#parallel and yields self
-
#pause : self
Pauses the tween
-
#play : self
Resumes the tween
-
#speed_scale(scale : Float64) : self
Sets tween speed multiplier
-
#trans(type : Tween::TransitionType | Trans | Symbol | Int) : self
Sets default transition type on the tween
- #tween : Tween
Instance methods inherited from class Object
try?(&)try? try?
Constructor Detail
Instance Method Detail
Animates specified target property to destination value with optional transition, easing, and starting value
Animates owner node's property to destination value (target omitted)
Animates owner node's sub-property using symbols (e.g. animate :position, :y, to: 150.0)
Pauses until the given signal is emitted
Delays the tween execution by the specified duration in seconds or ::Time::Span
Sets default easing curve type on the tween
Sets default transition type on the tween