Created
December 21, 2019 00:14
-
-
Save RKiemGames/bf45ef6e089329abc302b2f0d2020462 to your computer and use it in GitHub Desktop.
Porting AnimationTree animations to another AnimationTree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func _ready(): | |
for anim in $AnimationPlayer2.get_animation_list(): | |
$AnimationPlayer.add_animation(anim, $AnimationPlayer2.get_animation(anim)) | |
#example: running animations ported | |
$AnimationPlayer.connect("animation_finished", self, "rotate_anim") | |
$AnimationPlayer.play("test1") | |
func rotate_anim(anim_name): | |
$AnimationPlayer.play("test2") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment