Multiplayer fps not working

I have combined three tutorials to create a scene that has first-player camera, and multiplayer. it is not working together. the camera works and so do the controls but the multiplayer doesn’t. i have tried working through everything a little bit at a time and even have tried copy and pasting if anyone can help that would be appreciated. thank you
https://playcanvas.com/editor/scene/1230354

The reason your project’s multiplayer code is not working is because you haven’t set it up any networking code yet.

  • You need to setup the client networking script: network.js, with a Script component and also setup the necessary network attributes in the Editor

  • You need to setup server-side code, preferably a Node.js server that works alongside Socket.io code, which all in turn will need to be hosted on a hosting site, such as the suggested Glitch.com


You will also need to create code to transmit and receive player rotation transform values, similiar to the already implemented getting/setting of player position code.

Official Multiplayer Networking Tutuorial

https://developer.playcanvas.com/en/tutorials/real-time-multiplayer/

1 Like