浏览代码

Make the speed of Tween editable

DricomDragon 5 年之前
父节点
当前提交
455c5c16be
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      CharTween.gd
  2. 1 0
      Player.tscn

+ 1 - 1
CharTween.gd

@@ -1,6 +1,6 @@
 extends Tween
 
-var duration = 0.75
+export var duration = 0.75
 
 # Called when the node enters the scene tree for the first time.
 func _ready():

+ 1 - 0
Player.tscn

@@ -51,3 +51,4 @@ __meta__ = {
 
 [node name="Tween" type="Tween" parent="."]
 script = ExtResource( 3 )
+duration = 0.25