0 votes

Hello, I'm trying to use inheritance, I have three scripts where two of them extend the third one. It works if only one of those scripts extend the third one, but if I have the two scripts extending the third one at the same time I get the following error that I can't figure out why it happens.

The first two scripts are linked to a Button node, the third script is not linked to any node.

Script 1:

extends "res://scripts/Conf_PopUp_Menu.gd"

Script 2:

extends "res://scripts/Conf_PopUp_Menu.gd"

Script 3:

extends Button

So when enters the script 2 in the Extend line I get the following error.

Parser Error: Couldn't load the base class: res://scripts/Conf_PopUp_Menu.gd

What could be happening? Thank you very much!

PD: The error is not thrown in compilation but in execution.

Godot version 3.3.2
in Engine by (37 points)

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 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.