Collision change scene

I need to be able to make it so when you touch a certain object in the game, it teleports you to a new scene. please help

Hi @nekaki347gggggggggg,

You need to use triggers for that, check this tutorial to get started:

https://developer.playcanvas.com/en/tutorials/collision-and-triggers/

And to change the scene check the examples here:

https://developer.playcanvas.com/en/tutorials/?tags=scenes

And this manual page: Loading Scenes | Learn PlayCanvas

ok thank you!

I got it to work, but it only works once per scene, and im trying to have multiple in one scene

https://playcanvas.com/project/1133399/overview/the-place

You will need to repeat the logic similarly, check for trigger enter and fire the change scene method.

ok i got it to work, i had to edit the code, i accidentally had the same name😅

1 Like