Set up multiplayer for your game – Step-by-Step Guide | Vibe96
Vibe Studio

Set up multiplayer for your game

Published Last updated 2 min readBy Vibe96 team

Short answerIn the Multiplayer tab, add your own Photon App ID and choose a region. One player then opens a room and gets a five-letter code, and friends join with the code.

Games are better with friends. Playing together runs on your own Photon account, and setting it up takes about five minutes.

First: can your game be played together?

Open the Multiplayer tab. It tells you whether your kind of game can be played together and how many players fit in a room. If your game was built for one player, press the button to ask Nova to add it. It is a change to the game, so it is planned and built like any other task.

Get your Photon App ID

  1. Open photonengine.com and create an account. It is your own account, in your name.
  2. In the Photon dashboard choose Create a new app.
  3. For the type choose Realtime. Give it your game's name and create it.
  4. Copy the App ID shown for the app. It is made of letters and digits with dashes.

Add it to your game

  1. Go back to the Multiplayer tab.
  2. Paste the App ID.
  3. Choose the region nearest to most of your players.
  4. Save.
  5. Wait for the test link to update.

๐Ÿ’ก Paste the App ID in the Multiplayer tab only, not in the chat.

Test it

  1. Open your game's test link on two devices, or in two browsers.
  2. Press Play together on both.
  3. Open a room on one. You get a five-letter code.
  4. Join with the code on the other.

In games with rivals, computer rivals take the empty seats.

What the tab tells you

  • Switched off: the game has no "Play together" button.
  • Not set up yet: the game shows "Play together" and tells players it is not ready. Add your App ID.
  • Set up: players see "Play together" on the start screen.

Things to know

  • Region: a room code only works inside one region, so every player uses the region you choose.
  • Players at once: Photon's free plan has a limit on how many players can be online at the same moment. The tab shows it. More players need a paid Photon plan, which Photon bills to you directly.
  • The App ID is not a password: every player's browser sends it to Photon. Still, enter it only in the Multiplayer tab.
  • Results are not cheat-proof: each player's device reports its own result, so results of rooms never enter the top scores. Do not use them for prizes.

Make playing together fun

  • Keep rounds short, so nobody waits long to join.
  • Show the room code large and easy to read out loud.
  • Test with a friend in another home, not only on your own Wi-Fi.

๐Ÿ’ก Play one full round with a real friend before you share the game widely. Two browsers on your own desk never show what a slow connection does.

For the rules of your game, see Read and change your game script.

Questions

Do I need a Photon account?

Yes. Playing together runs on your own Photon account. Creating one takes about five minutes.

How do friends join my game?

One player opens a room and gets a five-letter code. Friends press Play together and join with the code.

Can I give prizes for the results?

No. Results of rooms are not cheat-proof, so do not use them for prizes.

Was this guide helpful?