Stable interface for both Animation player and Animated Sprite (#363)

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
This commit is contained in:
Dennis PloegerandDennis Ploeger authored and GitHub committed 2021-08-10 21:35:01 +02:00
1 parent 61726bca81
commit 15bf1a8c81
11 files changed
+413 -138

No files matched your search

@@ -107,7 +107,7 @@ var result_angles = []
func _ready():
# Find player animations
$player_animations.add_item("")
for anim_name in $player.get_animation_player.get_sprite_frames().get_animation_names():
for anim_name in $player.get_animation_player().get_animations():
$player_animations.add_item(anim_name)
# Set initial angles