Topic was automatically imported from the old Question2Answer platform.
Asked By
Tova
i’m creating a multiplayer game and i have multiple players on the same map, and each one of them needs to have its own camera, but there can apparently only be one active camera in a scene
i know there are two vertions of Godo, one is server and second is the client.
in that case, every client could have its own camera, and the server make them know the position of each one, by network comunication. Make a server with Godot Server (Linux) and try to comunicate the clients on diferent computers, with their own camera.
ok, so for anyone who is interested i managed to do it by attaching a camera node to my player, then instancing that player scene and spawning it in a map, and then in a player script in _ready function i check if is_network_master and execute camera.make_current()
and it works fine for me
does this have any drawbacks comparing to ** eugene**'s answer (viewports)?
Ankeris | 2019-10-27 18:52
2 years later and that’s exactly what I was looking for thanks! Btw, did you ever figure out viewports?