0:00:07.204 emit_signal: Error calling method from signal 'animation_finished': 'KinematicBody2D(Player.gd)::_on_AnimatedSprite_animation_finished': Method not found..
<C++ Source> core/object.cpp:1236 @ emit_signal()
this error occurs every second, the length of the current animation.
here is the code of the animation player, but it never references the signal, so I'm not sure where the issue is coming from.
extends Node
var facing = "East"
onready var model = $metarig
#onready var Animationplayer = $AnimationPlayer
# Called when the node enters the scene tree for the first time.
func _ready():
$AnimationPlayer.play("Stand")
func _on_KinematicBody_WalkEast():
facing = "east"
model.rotation_degrees.y = 0
walk()
func _on_KinematicBody_WalkNorth():
facing = "north"
model.rotation_degrees.y = 270
walk()
func _on_KinematicBody_WalkSouth():
facing = "south"
model.rotation_degrees.y = 90
walk()
func _on_KinematicBody_WalkWest():
facing = "west"
model.rotation_degrees.y = 180
walk()
func _on_KinematicBody_Standing():
$AnimationPlayer.play("Stand")
func walk():
$AnimationPlayer.play("Walk")
func _on_KinematicBody_Idle():
$AnimationPlayer.play("Idle")`