#i need help fixing the error in my game
36 messages · Page 1 of 1 (latest)
I'm at the dentist now, when I get home I'll send you what you asked for
Hi! I am completly unsure if i'm correct but you are forcing the _effect variable to be a BaseEffect type but as a scene it's type is PackedScene regardless if it's script extends from BaseEffect
but not sure
you can delete : BaseEffect from var _effect declaration and maybe print it's type
No, that is not true. It it was just load(path) it would be a PackedScene but after instantiating. Its a scene, which don't have a type. You can store a scene using the top root node's type and the error isn't even about the type being a packedscene but that the scene is an Animation_player when the class is extended and changed to Baseeffect. So basically its not acknowledging the attached script.
and what can I do?
i'm home, i'll send you the scene from fall efects
The script is supposed to be acknowledged. I think the script is not attached. In any case, I need to see the scene tree.
Why does a scene has a scene inside?
in this case it is an inherited scene, from base_effect
And there is no script attached to the scene.
If its an inherited scene its should be in yellow, not in a scene packed form.
To inherit a scene, you click on top left(should be file in english) and select inherit scene. I don't know what its called in this language.
I'm doing a godot course, do you think I should redo these lessons to make sure I've done them correctly?
Thats not an inherited scene.
Yes.
what language do you speak?
Also this scene is also using another scene. You need to show that scene.
English
Show the scene it, itself is using.
I'll review the 3 previous lessons of the course that start with that, and if I get it wrong I'll come back here
For now lets solve this case.
ok
I can clearly see that there is no script attached to this node/scene.
And if no script is attached. the node is basically just an animated script and not a base effect.
ok, i see
it's a brazilian course, it's on a platform called Udemy, the name of the course is Godot 4+ Masterize 2D game development (2024) it was made by Davi Bandeira
I learned from youtube.......☺️
hey man