–2 votes

So I have been working on a platformer and when I wrong this bit of code "func onland():" it said this Expected ',' or ')' and I don't fucking know what to do I put a , and or a ) and I doesn't do shit

Godot version 3.5.1
in Engine by (10 points)

Hi BarneyArAldi,
this error message can be confusing even to experienced programmers.
Unfortunately you didn't provide enough context, code and - most importantly - the error message for any of us to understand what is going on.
You may want to tell us what the code the error occured in was supposed to do, what the function was and what error message you got said. In addition to that saying what you've already tried to solve this issue might be helpful for us as well.

What code is on the line?

For an error like this seeing the highlighted line and the ones above and below should probably be enough to understand what has happened. Perhaps think about what code is directly related to the error and the line it occurred in.

1 Answer

0 votes

For these kinds of errors, it is usually the previous line that you want to check.

by (56 points)
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.