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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.