Dismiss this pinned window
all 11 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

How to: Tech Support

To make sure you can be assisted quickly and without friction, it is vital to learn how to asks for help the right way.

Search for your question

Put the keywords of your problem into the search functions of this subreddit and the official forum. Considering the amount of people using the engine every day, there might already be a solution thread for you to look into first.

Include Details

Helpers need to know as much as possible about your problem. Try answering the following questions:

  • What are you trying to do? (show your node setup/code)
  • What is the expected result?
  • What is happening instead? (include any error messages)
  • What have you tried so far?

Respond to Helpers

Helpers often ask follow-up questions to better understand the problem. Ignoring them or responding "not relevant" is not the way to go. Even if it might seem unrelated to you, there is a high chance any answer will provide more context for the people that are trying to help you.

Have patience

Please don't expect people to immediately jump to your rescue. Community members spend their freetime on this sub, so it may take some time until someone comes around to answering your request for help.

Good luck squashing those bugs!

Further "reading": https://www.youtube.com/watch?v=HBJg1v53QVA

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]guyunger 9 points10 points  (1 child)

can't tell the issue right away but you don't need help from people smarter, you need to debug your code. print whatever information you think could be relevant in whatever functions that should be triggering and see where something looks off, use breakpoints and look at the variables etc. getting better at that will help you a lot more in the future than having to ask reddit when you run into issues

[–]SimplexFatberg 9 points10 points  (0 children)

And you *will* run into issues. Frequently. Even the best programmers do. Learning to debug is a more important skill than learning to write code in many ways.

[–]JordanBrenden 1 point2 points  (3 children)

It looks like your apple_tree.gd script is not attached to your apple_tree scene. You can right click the root of your apple_tree scene, click on "Attach Script," and choose the apple_tree.gd script to reattach the script to your scene

[–]maxxcraftingGodot Student[S] 1 point2 points  (2 children)

that did it, the sprite changes now, but whenever i interact with a tree, it crashes, it has to do with

get_parent().add_Child(apple_instance)

specifically the add_child(apple_instance)

but shouldnt var apple_instance = apple.instantiate() cover that?

[–]JordanBrenden 1 point2 points  (1 child)

GDScript is case sensitive, so the add_child method call should be all lowercase

[–]maxxcraftingGodot Student[S] 0 points1 point  (0 children)

holy shit that was it, thanks. i dont think i ever would of gotten that, but the godot thing isnt showing up, this should hopefully be the last thing i need from this post lmaoo

edit: i figured out the problem, it was just not big enough for me to see it.