Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

[iOS] what's the smart way to set up networking for a scrolling beat em up?

Discussion in 'Multiplayer' started by hippocoder, Jan 7, 2012.

  1. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Hi,

    Our next title is a scrolling beat em up for mobile. I'd love to put in co-op via wifi and bluetooth. I am asking for advice as it would be peer to peer without a central server with two players.

    Obviously cheating is not a problem or a worry. How to handle enemies? does one device act as master and the other as slave? what kind of input lag are we looking at, and should I use the unity rigidbody stuff?

    Probably about 10 things on screen will constantly update at the max.

    I also did not manage to locate how to send information as just information, ie player 2 has picked up a weapon?

    Thanks for any advice you can give to get me started!
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I'm following the tutorial, but it doesn't explain how devices will discover each other over game center and so on?
     
  3. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Right I see. If using gamekit or gamecenter, you do not use unity's networking code at all.