I have an image and some text that I want to show / hide:
overlay = this.game.add.image( 0, 0, this.custom_texture.generateTexture() ); overlay_text = this.game.add.text( 0, 0, 'TESTING 123', style );
I tried the destroy() function, but I couldn’t get them back, and I don’t think it is necessary to destroy them if I just want to hide and show them.
phaser-framework
Asaf
source share