|
@@ -2,18 +2,11 @@ extends Tween
|
|
|
|
|
|
export var default_duration = 0.1
|
|
|
|
|
|
-# Called when the node enters the scene tree for the first time.
|
|
|
-func _ready():
|
|
|
- pass # Replace with function body.
|
|
|
-
|
|
|
func connect_into(o):
|
|
|
connect("tween_completed", o, "_on_tween_completed")
|
|
|
- pass
|
|
|
|
|
|
func move_char(c, t_pos, duration = default_duration):
|
|
|
interpolate_property(c, "position", c.get_position(), t_pos, duration, Tween.TRANS_LINEAR, Tween.EASE_OUT_IN)
|
|
|
- pass
|
|
|
|
|
|
func rotate_char(c, from, to, duration = default_duration):
|
|
|
interpolate_property(c, "rotation_degrees", from, to, duration, Tween.TRANS_LINEAR, Tween.EASE_OUT)
|
|
|
- pass
|