Jump to content

Phaser 3 Pop up text And Auto Close


Balamurugan
 Share

Recommended Posts

I Make chips based games. When chips low i need to show pop-up message. Message need to dynamic. Pop-up need to close Automatically . What can i do in phaser 3.

i surf lots of times, still cant get any solution for this. Please help us. Thank you

Link to comment
Share on other sites

 

You could add an extra camera for UI display and tween it to appear and dissapear afterwards by adjusting the ScrollY, but make sure the main camera ignores all objects that are not text, otherwise you will see duplicates of the same text:

https://codepen.io/Samid737/pen/jxgqOe

 

you could achieve the same result using A UI scene,. If you only have one UI object (one text message) throughout the entire game, then you could try to tween A single text object.  The takeaway is to seperate UI (messages, buttons) display from the game.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...