Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Agar.io spawn random Food Photon Network

Discussion in 'Multiplayer' started by NexoYT, Sep 12, 2021.

?

Can I synchronize the food?

Poll closed Yesterday at 7:05 PM.
  1. Yes

    1 vote(s)
    100.0%
  2. No

    0 vote(s)
    0.0%
  3. Dont know

    0 vote(s)
    0.0%
  1. NexoYT

    NexoYT

    Joined:
    Feb 6, 2021
    Posts:
    1
    Sorry for bad english...

    Hi,
    I wanted to imitate Agar.io.
    I can already play with two or more players.
    But...
    the food that the player can collect is not synchronized with both players.

    Here are the scripts:
     

    Attached Files:

  2. r31o

    r31o

    Joined:
    Jul 29, 2021
    Posts:
    81
    The Agar.io food doesn't move so send the data when you spawn the food and send data when you eat the food. I dont know anything about Photon so I can't put code. Just theory.
     
unityunity