How to fix camera switching in multiplayer game?


#1

Hi. I am working on creating a multiplayer game. I has a problem that when the second player connects, the camera switches from the first player to the second player. The camera of the second player switches to the first. How can the problem be solved?
Link to the project: https://playcanvas.com/editor/scene/671387
Link to the server: https://glitch.com/edit/#!/brainy-paw


#2

Don’t have a second camera in the scene?

Is there a reason to have more than one camera in the scene?


#3

I’m new to game development and don’t know how to do it right. Need to use only one camera on the scene?


#4

I figured out how to turn off the second camera in the game, and it all worked. Thanks for the tip!