0 votes

I'm being told to use functions like newgame and gameover, but I can't find them in Godot's GDScript documentation. Where are these functions coming from? Are they a part of the node, listed somewhere else? I'm assuming this is a dumb question, but I'm so confused about where to learn all these functions and how they work outside of the tutorial.

I learned Game Maker a looooong time ago, and as a teen I'd just endlessly read the list of variables and functions like I was reading the dictionary. But I can't find something similar for these functions.

in Engine by (19 points)

1 Answer

0 votes
Best answer

There are no built-in functions called new_game() or game_over() in Godot.

I don't know where "being told" about these, but if it's in a tutorial, then they are likely functions that are defined in the tutorial.

by (20,897 points)
selected by

You're right, I kept following the tutorial utterly confused and it did eventually connect those to signals. I appreciate the tutorial's notes and tips but the few times when something goes totally unexplained like that, just a "do it and move on", feels like I'm missing something and becomes overwhelming for someone new to all of this... I have a literal headache. At least hopefully this will show up for the next person frantically googling what these functions mean.

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 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 webmaster@godotengine.org with your username.