0 votes

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 onArea2Dbodyentered(body):
if body.isingroup("player"):

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

It has been giving me error in queue_free()

Godot version v3.2
in Engine by (15 points)

You didn't say what the error was.

error(21,3): Expected ',' or ')'

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

1 Answer

+1 vote
Best answer

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

by (21,577 points)
selected by

Wow, muchas gracias <3

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.