Show/Hide Sprites & Texts in Phaser
It's more intuitive than I thought it would be.
To hide:
overlay.visible = false;
overlay_text.visible = false;
To Show:
overlay.visible = true;
overlay_text.visible = true;
In one Liner, we can toggle hide/show.
overlay.visible= !overlay.visible;
overlay_text.visible = !overlay_text.visible;