Browse Source

Make the tween ease symetric

Same behaviour at start and end of tween.
DricomDragon 5 năm trước cách đây
mục cha
commit
1ab8273596
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      CharTween.gd

+ 1 - 1
CharTween.gd

@@ -11,7 +11,7 @@ func connect_into(o):
 	pass
 
 func move_char(c, t_pos):
-	interpolate_property(c, "position", c.get_position(), t_pos, duration, Tween.TRANS_LINEAR, Tween.EASE_IN)
+	interpolate_property(c, "position", c.get_position(), t_pos, duration, Tween.TRANS_LINEAR, Tween.EASE_OUT_IN)
 	pass
 
 func rotate_char(c, t_rot):