playMaker

Author Topic: TargetPro + Photon Multiplayer  (Read 1893 times)

app_advisory

  • Junior Playmaker
  • **
  • Posts: 80
    • App Advisory
TargetPro + Photon Multiplayer
« on: September 19, 2014, 05:38:56 AM »
Hi,

I'm making a multiplayer game using Photon.

It's a shoot game with tanks.

So all the player are Targetable.


Do you have any idea to shoot a missile from a player, and if the missile hit the other player, apply damage ?

And how to manage the fact of  everybody are Targetable ..

Thank you very much and I hope my English is not took bad :(

Best regards,

AB

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: TargetPro + Photon Multiplayer
« Reply #1 on: September 23, 2014, 04:16:22 AM »
Hi,

 TargetPro in this case is delicate because of the way to destroys gameobjects, in a network situation you destroy object within the context of the network, and so targetpro needs some code editing to allow for this.

 If you already over comed this problem, then targetpro is fine, use it locally, and instead of synchroinize targetpro, synchronize the health of the player itself. Remove TargetPro from the equation, and simply let it run on the client as a tool.

 BUT, be careful with your network setup, cause if you are using non authoritative servers, then you CAN'T run targetpro or any physics based systems relyably without a huge initial work, because each simulation will be different on each client, target pro ( actually, the way your missile is going to travel and be guided) will be different and so you'll have problem with state synchronization.

 Bye,

 Jean