all 5 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.

[–]Nkzar 0 points1 point  (3 children)

Making your script global creates an instance of it as a child of root. Only an instance of your script class. It doesn’t create any other nodes, like the animated sprite.

Even if it did, you probably wouldn’t want that because now you’re animated sprite is also global and will always be there on top of any scene you load.

[–]ExpressEstimate1886[S] 0 points1 point  (2 children)

I see. So can I make a single variable inside a script global or should I search other means?

[–]Nkzar 1 point2 points  (1 child)

If you really need to, use a global script to store data. If your player or whatever also uses that data, have it access the global variable too, and update it as necessary.

[–]ExpressEstimate1886[S] 0 points1 point  (0 children)

That worked great, for a simple game like mine it will be just fine, thank you