Feat/14 movement overhaul #20
@@ -83,11 +83,11 @@ func find_animation_player(node: Node) -> AnimationPlayer:
|
||||
return result
|
||||
return null
|
||||
|
||||
func play_animation(name: String) -> void:
|
||||
if animation_player and animation_player.has_animation(name):
|
||||
animation_player.play(name)
|
||||
func play_animation(anim_name: String) -> void:
|
||||
if animation_player and animation_player.has_animation(anim_name):
|
||||
animation_player.play(anim_name)
|
||||
else:
|
||||
print("SkinnedPlayerModel: animation '%s' not found" % name)
|
||||
print("SkinnedPlayerModel: animation '%s' not found" % anim_name)
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if not animation_player:
|
||||
|
||||
Reference in New Issue
Block a user