Switch scenes when R is pressed

Hello! My name is Jason Evens and I am new to Playcanvas. I need help with a code where I switch scenes when I press R on the keyboard. Does anyone know how to do that?

Hi @Gcoder2022 and welcome. You can start reading the manual page below. It explains how to change a scene. On the forum you can find many topics about detecting a key press that also can help. The best is to try it in a new project (with different scenes), so you can easily share your project when you get stuck.


1 Like

Does it talk about changing scenes with the keyboard?

It’s about the basics of changing a scene. As far as I can see a button is used in the example, but you can also invoke the specific function with a key press.