extends Tween export var duration = 0.75 # 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): interpolate_property(c, "position", c.get_position(), t_pos, duration, Tween.TRANS_LINEAR, Tween.EASE_IN) pass func rotate_char(c, t_rot): interpolate_property(c, "rotation_degrees", c.rotation_degrees, t_rot, duration, Tween.TRANS_LINEAR, Tween.EASE_IN) pass