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
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
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