i got a annoying problem

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By i.want.to.die
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

on_Area2D2_body_exited ← Interesting. How many Area2Ds are in the scene?

Specifically, those with the name “Area2D”

System_Error | 2020-04-20 18:32

It seems that there’s an event to the said body_exited 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.

wombatstampede | 2020-04-21 07:42

Thank you very much!

i.want.to.die | 2020-04-21 21:22