mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
correct mistake of the document
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user