diff --git a/script/demo10_animation/tween_animation.gd b/script/demo10_animation/tween_animation.gd index 3da2f34..c9144ca 100644 --- a/script/demo10_animation/tween_animation.gd +++ b/script/demo10_animation/tween_animation.gd @@ -6,6 +6,7 @@ onready var targetPosition = get_node("/root/Node2D/TargetPosition") # Called when the node enters the scene tree for the first time. func _ready(): + # 会在起始点和终点不断的插值计算 tween.follow_property(self, "position", get_position(), targetPosition, "position", 2.0, Tween.TRANS_LINEAR, Tween.EASE_IN_OUT) tween.start()