Balamurugan

Phaser 3 Pop up text And Auto Close

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.