Forked from RKiemGames/port_animation_tree_animations.gd
Created
December 21, 2019 00:41
-
-
Save kone9/1216485417d4eec95c7167b764916de8 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