class
Godot::PropertyTweenerStep
- Godot::PropertyTweenerStep
- Reference
- Object
Overview
Expressive step wrapper around Godot::PropertyTweener supporting fluent chaining
Defined in:
libgodot/extensions/tween.crConstructors
Macro Summary
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
Chains another animation step directly on target
-
#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
Chains another animation on owner node directly
-
#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
Chains sub-property animation on owner node directly
-
#as_relative : self
Interprets the destination value as relative to the starting value
- #builder : TweenBuilder
-
#chain : TweenBuilder
Chains sequential execution and returns the TweenBuilder for the next step
-
#delay(duration : Float64 | ::Time::Span) : self
Sets a delay in seconds or ::Time::Span before this tweener executes
-
#delay_step(duration : Float64 | ::Time::Span) : IntervalTweenerStep
Chains an interval delay step
-
#ease(type : Tween::EaseType | Ease | Symbol | Int) : self
Configures the easing curve type (e.g.
-
#from(value : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color) : self
Sets the starting value for the tweened property
-
#from_current : self
Sets the starting value to the current value at runtime
- #kill : TweenBuilder
- #loops(count : Int = 0) : TweenBuilder
-
#parallel : TweenBuilder
Sets parallel execution and returns the TweenBuilder for concurrent steps
- #pause : TweenBuilder
- #play : TweenBuilder
-
#raw_tweener : PropertyTweener
Returns the underlying raw Godot::PropertyTweener
- #speed_scale(scale : Float64) : TweenBuilder
-
#trans(type : Tween::TransitionType | Trans | Symbol | Int) : self
Configures the transition curve type (e.g.
- #tweener : PropertyTweener
Instance methods inherited from class Object
try?(&)try? try?
Constructor Detail
Macro Detail
Instance Method Detail
Chains another animation step directly on target
Chains another animation on owner node directly
Chains sub-property animation on owner node directly
Chains sequential execution and returns the TweenBuilder for the next step
Sets a delay in seconds or ::Time::Span before this tweener executes
Chains an interval delay step
Configures the easing curve type (e.g. :in, :out, :in_out)
Sets the starting value for the tweened property
Sets parallel execution and returns the TweenBuilder for concurrent steps
Configures the transition curve type (e.g. :cubic, :elastic, :linear)