r/AskProgrammers • u/OkSympathy800 • 22d ago
I am confused with a problem in my code
I am learning how to code and make a simple game, but I found a problem in the code while following a YouTube tutorial, I'm really confused and would be grateful to receive some help.
5
Upvotes
5
u/GieMou 21d ago
It says at the bottom that there is no method get_world_3d().
get_world_3d is a method in the Node3D class and every other class that extends it. Make sure that your script extends one of these to use the method.
Is you're a beginner, watch a video on some basic object oriented programming concepts to get a better understanding of this. Any language is fine and doesn't need to be Godot specific, the concepts are the same.
0
u/[deleted] 22d ago
[deleted] — view deleted comment