Camera does not follow

why does when I move my camera does not turn left and right.

here’s the link to my game: PlayCanvas | HTML5 Game Engine

Hi @Pixels,

Your code is only moving the player entity, it doesn’t include any code to turn the camera.

Check this third person example project, it includes a rotating third person camera: Third Person Controller | Learn PlayCanvas

1 Like

That’s the code for when you move the mouse, the camera will follow. But, what is the code for when you press the W key, the camera will follow?

How can I make the camera follow my character like turning, using only the WASD keys and not the mouse

Here’s the link to my game:PlayCanvas | HTML5 Game Engine