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:

And to change the scene check the examples here:

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

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