How do I resolve this error?

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

I have not yet been able to fix this error. I have spent the last 4 hours watching videos and they are all very different or the same but it still does not work for me.

func _on_Area2D_body_entered(body):
if body.is_in_group(“player”):

	get_parent().Monedas += 1
	print(str(get_parent().Monedas)
	queue_free()
pass # Replace with function body.

It has been giving me error in queue_free()

You didn’t say what the error was.

kidscancode | 2021-09-09 00:16

error(21,3): Expected ‘,’ or ‘)’

(Soy nueva en esto, disculpa si no especifico bien).

Javiera | 2021-09-09 00:32

:bust_in_silhouette: Reply From: kidscancode

Look at the line before queue_free(). There are not enough parentheses. Specifically, you’re missing a closing one:

print(str(get_parent().Monedas))

Wow, muchas gracias <3

Javiera | 2021-09-09 01:21