Hello,
I am currently working on incorporating multiple scenes. I have one scene which is where all of the game things happen in it called gameScene
. I have another scene which has a menu on it called missionScene
. When I open missionScene
I want to disable all input on gameScene
. Is there a simple solution to this?
The input objects I’m using:
- on-screen buttons through .setInteractive()
- cursorKeys e.g.
createCursorKeys
- Pointer e.g.
game.input.activePointer
The only thing I can think of about how to accomplish this is to destroy all the inputs and recreate them after missionScene
is closed, but that does not account for on-screen buttons. The only way I can think of getting rid of onscreen buttons is through having some kind of sprite which has a very high depth value and blocks the user from touching anything behind it. I hope that there is a more elegant solution than this.
Thanks,
UltimateProGrammer