Author Topic: About Tnet synchronization  (Read 4087 times)

tjdonald

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
About Tnet synchronization
« on: June 19, 2015, 03:33:51 AM »
I need to do a case, the function is the unity of synchronization on computers and mobile phones (but a mobile phone can't control, can only see, only the computer can control) but now TNet can control program is to first open the program, how do I let the program only on the computer control, displayed on the phone just.My English is limited, hope to understand.Thanks!!!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About Tnet synchronization
« Reply #1 on: June 21, 2015, 08:35:00 PM »
The first player to join a channel is deemed its "host". TNManager.isHosting is the flag you can use. Check it in your scripts: if TNManager.isHosting, then do your control logic.

tjdonald

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: About Tnet synchronization
« Reply #2 on: June 22, 2015, 09:45:03 PM »
How to make the second join channel Windows platform program is set to the "host", not the first to join channel of the android platform application is set to the "host"?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About Tnet synchronization
« Reply #3 on: June 25, 2015, 09:31:25 PM »
You can transfer the "host" status using TNManager.SetHost, but only the current host can do this.