Dialog text UI for FPS game

how would i do a in-game dialog? so i want to have the text show up in the bottom of the screen for a certain amount of time, then dissapear and put new text there, etc, then when all the text has been displayed, the dialog text will end.

Hi, you can start by looking at the Playcanvas UI Basics first. User Interface Basics | Learn PlayCanvas , this will teach you how to position the dialog at the bottom of the screen with a text element. You can use setTimeout() - Web APIs | MDN to make the dialog appear/disappear after a certain delay.

1 Like

ok

There is already a PlayCanvas example on how to implement a dialog system.
If you’re interested.

https://playcanvas.github.io/#/user-interface/text-typewriter

thanks