How to make a Unity 2D Platformer Multiplayer or Top Down Shooter

Hi guys!

I’m want to make a 2d platformer multiplayer or a Top-Down Shooter… but I have no idea how can I make it synchronize and how to synchronize enemies on both screens.

I made a top-down singleplayer but have no idea how to turn it into multiplayer.

Can someone help me with a few tips or a tutorial, please?

For beginners I would recommend using Photon Multiplayer (PUN2). It provides an easy integration with Unity and is as far as I know the most popular (and thus, has many tutorials/much documentation). Also, you don’t have to host your own server, which is a huge plus (on the downside, this makes PUN2 a bit pricey if you want a lot of CCU, but up until 20 online users is free).

I would recommend the following tutorial to begin:

Or this series of videos

You should at least have base knowledge about:

  • How two or more seperate clients connect to create a multiplayer experience
  • What the master client is and how to use it
  • The concept of RPCs (Remote Procedure Calls)
  • What to instantiate locally and what to instantiate via the server (e.g. in a shooter, bullets are better spawned locally)

Also, practice makes perfect. Good luck!

Thanks