0 votes

Greetings Godot Community!

I wanted to know if there is a way to have consistent listener (in this case for input) that runs independently from a scene. Kinda like an overlay.
Because I dont have a player instance or sth like that which could do it.

Thanks in advance!

asked Aug 23, 2017 in Engine by Chain (69 points)

1 Answer

+1 vote
Best answer

You should do an "autoload" singleton script. Write a script and find the "autoload" option in project config. This kind of script will be in the top of the scenetree, it will be independent of the scene (but it instantiate their own node if inherits object), and be unique.

answered Aug 23, 2017 by _807_ (292 points)
selected Aug 23, 2017 by Chain

That was it. Thank you :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.