I need to show some text whenever the player collides with something like a diaglogue pops up with a panel. I’m confused to how it would work.
Hi @asterrisk !
You can keep a disabled entity ready (possibly on the 2d screen if you have one), and then enable it on the collision. You can use on collision end to disable it again.
I tried this but it doesn’t show when player collided.
Can you please share your code or a link to your scene?
https://playcanvas.com/editor/scene/2371116
it’s in the trivia screen and collision code.
From what I have seen, you are not disabling the entities at the start of the game. This can be done in the editor with unchecking the enabled box on the entities you want to pop up later.