–1 vote
E 0:00:11.575   emit_signal: Error calling method from signal 'body_exited': 'KinematicBody2D(inimigo1.gd)::_on_Area2D2_body_exited': Method not found..

<C++ Source> core/object.cpp:1228 @ emit_signal()
i got this error but it does not seem to affect anything in the project , it is just annoying , how can i fix it?
and this is the collision code of "inimigo1"

func _physics_process(delta):
if is_dead == false:
    movement.x = vel * dir
    movement.y += gra
    movement = move_and_slide(movement , Floor)
    if dir == 1:
        $Area2D/Sprite2.flip_h = false
    if $Area2D/RayCast2D.is_colliding() == true:
        vel = 260
        vel = 200

if is_on_wall() or $RayCast2D.is_colliding() != true:

if $lk/locked.is_colliding() == true:
    if is_dead == false:
        $lk/locked.enabled = false
        $Sprite2.visible = true

func _on_Area2D_body_entered(body):
func _on_Timer2_timeout():
$lk/locked.enabled = true
in Engine by (28 points)

on_Area2D2_body_exited <- Interesting. How many Area2Ds are in the scene?

Specifically, those with the name "Area2D"

It seems that there's an event to the said bodyexited method mapped in the node but that function has been removed from the code in the mean time.
Clear the event mapping for body
exited for that node.

Thank you very much!

Please log in or register to answer this question.

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 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 webmaster@godotengine.org with your username.