i have error code error calling method from signal

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By anas782

extends Area2D

var collecting_times = 0

func _ready():
collecting_times = 0

signal coin_collected

func _on_coin_body_entered(body):
collecting_times += 1
if collecting_times == 1:

pass # Replace with function body.

func _on_AudioStreamPlayer_finished():
pass # Replace with function body.

Format the code properly with {} option and paste the error message…

Inces | 2022-12-30 11:47

You don’t even tell us what the error code is?

SteveSmith | 2022-12-31 15:38