Control Buttons Error


#1

Hello,

I am in the middle of creating a scene and I discovered when I launch it the arrow buttons were not working and I am not able to navigate through the scene. How do I fix this issue?


#2

Are the arrow keys logically hooked up to anything in code?


#3

No it does not seem like there s any codes. The arrow buttons used to allow me to walk in the scene but now just randomly stopped. Is it the website itself the issue?


#4

Highly unlikely. Can you share a link to the project please?


#5

Sure, this is the editor link, https://playcanvas.com/editor/scene/747903


#6

I’m not sure I understand the problem here. There’s no code that moves the user in the scene with arrow keys or WASD. I’m not sure where the expectation of being able to navigate the scene has come from?


#7

I meant that in the launch page this link https://launch.playcanvas.com/747903?debug=true
I am trying to walk through the scene by using the up and down arrows but they are not working. The wasd keys also do not allow me to move.


#8

If you are in the editor, then you can control the movement of the camera, which is in the editor. If you start the scene, the camera that is available in the editor is deleted. To solve this problem, you need to add your camera on scene, and add to it the logic of rotation and movement using scripts.


#9

How do you add the camera on scene and how do you add it by using scripts?


#10

As an example, you can look at this tutorial: https://developer.playcanvas.com/en/tutorials/first-person-movement/


#11

So it seems I have to add an camera entity and add the script that is scene in the tutorial to it?