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