From 5dd791772b7e95960b9a5d4b084964a77f2efb5f Mon Sep 17 00:00:00 2001 From: baze Date: Sun, 10 May 2020 03:28:34 +0800 Subject: [PATCH] correct mistake of the document --- classes/class_animation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class_animation.rst b/classes/class_animation.rst index 9a7b0edde..ac50bd6a3 100644 --- a/classes/class_animation.rst +++ b/classes/class_animation.rst @@ -24,7 +24,7 @@ An Animation resource contains data used to animate everything in the engine. An # 100 pixels in 1 second. var animation = Animation.new() var track_index = animation.add_track(Animation.TYPE_VALUE) - animation.track_set_path(track_index, "Enemy:position.x") + animation.track_set_path(track_index, "Enemy:position:x") animation.track_insert_key(track_index, 0.0, 0) animation.track_insert_key(track_index, 0.5, 100)