Author Topic: Multiplayer Quiz Game  (Read 1729 times)

Hoskins355

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Multiplayer Quiz Game
« on: July 03, 2014, 10:07:26 PM »
I am trying to make a multiplayer quiz game, but how do I go about sending the values from button press and tell if it player1 or player2? Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Multiplayer Quiz Game
« Reply #1 on: July 04, 2014, 03:05:35 PM »
tno.Send("SomeFunction", Target.All, TNManager.playerID);

Hoskins355

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Multiplayer Quiz Game
« Reply #2 on: July 05, 2014, 09:11:41 AM »
Can I do something like

if(TNManager.playerID == player1){

}

Thanks for your help

Brandon

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Multiplayer Quiz Game
« Reply #3 on: July 05, 2014, 11:11:00 PM »
Sure.