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

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

View File

@@ -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