+1 vote

Question RE: stopping input on all other scenes.

Godot 2.1.4 stable OSX

I have a game where I have dialogs appear on top of other dialogs. So I can press a button, a dialog (new scene instance) appears above the current scene. I can click into the new scene but I can also click into the original scene. Which is not what I want.

I know I can set the process mode to inherit, stop or process and I have that working but my problem comes when I have multiple screens appearing over the top of each other.

For example:
- main game (press options button)
- instance an option scene with other buttons and whatnot. (press help button)
- instance a help scene with description of what to do etc.

So in this single case I have two scenes loading on top of the original. Yet the buttons underneath can still have their buttons pressed.

I'd like to make a system where I can send a signal and ALL other scenes stop accepting input EXCEPT the one I'm in.

The trick there is determining what to keep active. Should I send a signal that has the name of the current, active scene and the signal should inhibit input on all other scenes? In some kind of loop maybe?

Any help would be greatly appreciated.

in Engine by (830 points)

Please log in or register to answer this question.

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.