20. AnimationPlayer
The AnimationPlayer node is used to create any kind of animation.
Usually they will be used to control a sprite (or many sprites), but could be any node or function within a node.
Here we have an AnimationPlayer as the root node and a Sprite as child, which Godot icon texture.
Four keyframes are inserted. We only have one track (for location) as shown:
This shows the complete animation on the 200 by 200 window.
No comments:
Post a Comment