|
@@ -9,8 +9,8 @@
|
|
[codeblock]
|
|
[codeblock]
|
|
var tween = get_node("Tween")
|
|
var tween = get_node("Tween")
|
|
tween.interpolate_property($Node2D, "position",
|
|
tween.interpolate_property($Node2D, "position",
|
|
- Vector2(0, 0), Vector2(100, 100), 1,
|
|
|
|
- Tween.TRANS_LINEAR, Tween.EASE_IN_OUT)
|
|
|
|
|
|
+ Vector2(0, 0), Vector2(100, 100), 1,
|
|
|
|
+ Tween.TRANS_LINEAR, Tween.EASE_IN_OUT)
|
|
tween.start()
|
|
tween.start()
|
|
[/codeblock]
|
|
[/codeblock]
|
|
Many methods require a property name, such as "position" above. You can find the correct property name by hovering over the property in the Inspector.
|
|
Many methods require a property name, such as "position" above. You can find the correct property name by hovering over the property in the Inspector.
|
|
@@ -44,7 +44,7 @@
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Follows [code]method[/code] of [code]object[/code] and applies the returned value on [code]target_method[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] later. Methods are called with consecutive values.
|
|
Follows [code]method[/code] of [code]object[/code] and applies the returned value on [code]target_method[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] later. Methods are called with consecutive values.
|
|
- Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
|
|
|
|
+ Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="follow_property">
|
|
<method name="follow_property">
|
|
@@ -70,7 +70,7 @@
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Follows [code]property[/code] of [code]object[/code] and applies it on [code]target_property[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later.
|
|
Follows [code]property[/code] of [code]object[/code] and applies it on [code]target_property[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later.
|
|
- Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
|
|
|
|
+ Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_runtime" qualifiers="const">
|
|
<method name="get_runtime" qualifiers="const">
|
|
@@ -147,7 +147,7 @@
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Animates [code]method[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are called with consecutive values.
|
|
Animates [code]method[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are called with consecutive values.
|
|
- Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
|
|
|
|
+ Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="interpolate_property">
|
|
<method name="interpolate_property">
|
|
@@ -171,7 +171,7 @@
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Animates [code]property[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Setting the initial value to [code]null[/code] uses the current value of the property.
|
|
Animates [code]property[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Setting the initial value to [code]null[/code] uses the current value of the property.
|
|
- Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
|
|
|
|
+ Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="is_active" qualifiers="const">
|
|
<method name="is_active" qualifiers="const">
|
|
@@ -301,7 +301,7 @@
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Animates [code]method[/code] of [code]object[/code] from the value returned by [code]initial_method[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecutive values.
|
|
Animates [code]method[/code] of [code]object[/code] from the value returned by [code]initial_method[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecutive values.
|
|
- Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
|
|
|
|
+ Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="targeting_property">
|
|
<method name="targeting_property">
|
|
@@ -327,7 +327,7 @@
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Animates [code]property[/code] of [code]object[/code] from the current value of the [code]initial_val[/code] property of [code]initial[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later.
|
|
Animates [code]property[/code] of [code]object[/code] from the current value of the [code]initial_val[/code] property of [code]initial[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later.
|
|
- Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
|
|
|
|
+ Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="tell" qualifiers="const">
|
|
<method name="tell" qualifiers="const">
|