playMaker

Author Topic: Turn Based Multiplayer, Photon, Offline Mode....  (Read 13197 times)

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Re: Turn Based Multiplayer, Photon, Offline Mode....[SOLVED]
« Reply #15 on: April 30, 2014, 02:46:25 AM »
Hi Jean,

I have been working on other aspects of my game, but something just hit me.
It seems to me that turnbased is impossible to do with Photon Realtime at all, since photon instantiate requires both users to be connected. If one leave the room the game can't instantiate on the missing player side, am I right ?
It seems to me that it needs to be all done in Parse.
What do you think  about this ?

Yaniv
« Last Edit: July 03, 2014, 12:26:55 AM by jeanfabre »
Visit my portfolio: http://www.yanivcahoua.com/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Turn Based Multiplayer, Photon, Offline Mode....
« Reply #16 on: April 30, 2014, 03:30:20 AM »
Hi,

 yep, Parse would be a very good alternative. Be aware that photon is working on a specific turn based system at the moment, as well as a dedicated chat system as well.

https://www.exitgames.com/en/Turnbased

https://www.exitgames.com/en/Chat


Bye,

Jean

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Re: Turn Based Multiplayer, Photon, Offline Mode....
« Reply #17 on: April 30, 2014, 03:35:55 AM »
Yes,
I subscribed to the Photon Turnbased google group,
but with playmaker actions I don't think I will be able to do anything with it....
I know Google Play Game Service has something similar, but it is limited to google users....so I am not sure if it is an option and again no playmaker actions for the Turnbased functionalities.


Visit my portfolio: http://www.yanivcahoua.com/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Turn Based Multiplayer, Photon, Offline Mode....
« Reply #18 on: April 30, 2014, 03:45:48 AM »
Hi,

 yes, custom will be required. They'll be supported hopefully soon.

bye,

 Jean

nick_h82

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Turn Based Multiplayer, Photon, Offline Mode....
« Reply #19 on: June 26, 2014, 06:38:58 PM »
Hi Jean,

thanks for all your work on the Photon example, I've managed to create a vehicle that can be entered/exited, which can also contain a sub-vehicle that does the same, and can be carried or left in place. All this being synched. Great fun!

I have a question regarding the above offline mode- I'd quite like to run offline if the connection fails- it seems a more graceful way of failing. Therefore, I need to set.property as PhotonNetwork.offlineMode = true. My problem is I can't quite work out what script to set this on, as none of them seem to show this property.

Thanks,

Nick

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Turn Based Multiplayer, Photon, Offline Mode....
« Reply #20 on: July 02, 2014, 07:30:07 AM »
Hi,

 Please find attached the custom action to set the offline mode. It's untested, haven't had time to allocate on this currently, so tell me if that's all ok with you. This action will be part of the next release of Photon support for PlayMaker.

[EDIT] attachement seems broken for now. save this link to get it.


 Bye,

 Jean

nick_h82

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Turn Based Multiplayer, Photon, Offline Mode....
« Reply #21 on: July 02, 2014, 05:59:41 PM »
Thanks Jean, works perfectly.

Regards,

Nick