pull/2/head
godotg 2022-07-09 17:08:36 +08:00
parent 4dbeb16717
commit f2c797e0b7
1 changed files with 1 additions and 0 deletions

View File

@ -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()