#i need help fixing the error in my game

36 messages · Page 1 of 1 (latest)

lethal cargo
#

Could you show the scene of fall effect?

#

Maybe the problem that the script is not attached or is wrong?

rotund spoke
terse granite
#

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

lethal cargo
# terse granite Hi! I am completly unsure if i'm correct but you are forcing the `_effect` varia...

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.

rotund spoke
#

i'm home, i'll send you the scene from fall efects

lethal cargo
rotund spoke
lethal cargo
#

Why does a scene has a scene inside?

rotund spoke
#

in this case it is an inherited scene, from base_effect

lethal cargo
lethal cargo
#

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.

rotund spoke
#

I'm doing a godot course, do you think I should redo these lessons to make sure I've done them correctly?

lethal cargo
#

Thats not an inherited scene.

rotund spoke
#

what language do you speak?

lethal cargo
lethal cargo
rotund spoke
#

ah ok

#

i'm from brazil

lethal cargo
rotund spoke
#

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

rotund spoke
#

ok

lethal cargo
# rotund spoke

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.

rotund spoke
#

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

lethal cargo
rotund spoke
#

hey man

rotund spoke
#

thank you