0 votes


I created aura class object, different elemental auras inherit from it. Aura class has 2 variables : radius and shape reference. Somehow, when a new object with any aura enters the scene, all already existing auras have their shapes and radius modified just like that new object on his private _ready function.

Is there some mechanism with inheritance I don't understand ? Why do all objects inheriting from certain class object change, when I set a variable in private function of only one of them ?

Godot version godot 3.2 stable
in Engine by (7,925 points)

1 Answer

0 votes

Does variables with radius and shape changed in objects or only visual representation?
Also there is no private functions in gdscript. All functions are publicly accessible.

by (1,644 points)

radius remained individual for all objects, only shape changed and behaved like it was globally assessed. Is it something with shape2d " set_extents " ?

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.