0 votes

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():

func _on_KinematicBody_WalkEast():
    facing = "east"
    model.rotation_degrees.y = 0

func _on_KinematicBody_WalkNorth():
    facing = "north"
    model.rotation_degrees.y = 270

func _on_KinematicBody_WalkSouth():
    facing = "south" 
    model.rotation_degrees.y = 90

func _on_KinematicBody_WalkWest():
    facing = "west" 
    model.rotation_degrees.y = 180

func _on_KinematicBody_Standing():

func walk():

func _on_KinematicBody_Idle():
Godot version Godot 3.4
in Engine by (12 points)

1 Answer

0 votes

The AnimatedSprite node has a built in signal "animationfinished". Maybe your AnimatedSprite has its "animationfinished" signal connected to a function called onAnimatedSpriteanimationfinished but that function is missing or deleted. Check the node dock

by (21 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.