0 votes

Good morning,
i was trying to design a 3d RPG with Godot Engine, which I find the best program to create video games I have tried, however I wrote some scripts and I get these errors:
Parser Error: The method "get_parent" isn't declared in the current class.e
Parser Error: The method "get_parent" isn't declared in the current class.
Could you tell me how to fix it?
Thanks

in Projects by (14 points)
edited by

To get help, you'll likely want to provide a few more things:

  • Post the entire script that's causing the error
  • Describe the layout of your scene tree (or provide an image)
  • Define what node in the scene tree the offending script is connected to.

what type of node is the script on?

OP wrote get_parent(), but the underscore got swallowed by the Markdown formatting. I edited their post accordingly.

Use `` for inline code blocks (surround your code with backticks), and prepend multiline code blocks with four spaces for each line (not a tab).

Please log in or register to answer this question.

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.

Categories