Where can I learn to use Photon plugin for Construct 2?

There isn't a great deal of documentation or support available and I'm wondering how I can learn it. I'm struggling every step of the way.

Please help.

Thanks!

Comments

  • vadimvadim admin
    I think the most valuable resources we have at the moment are tutorials written by plugin users and listed at the main page of Photon plugin forum: https://www.scirra.com/forum/plugin-photon-cloud_t125222?sid=8ea586642a55ba3ebcc2b04cd623da71
    Demos included in sdk show basic plugin usage and are good starting points for your own project.
    For general information on how Photon works please refer to https://doc.photonengine.com/en-us/realtime/current/getting-started/realtime-intro . Lobby, matchmaking, rooms, players and other are common for all Realtime Photon products including Construct 2 plugin.
    The plugin is based on Photon Javascript SDK: http://doc-api.exitgames.com/en/javascript/current
    Scirra Photon plugin forum itself is a good source of information and support.
  • Thanks for this,
    the only problem I have with the incldued capx, or the tutorials on the Scirra site, it doesn't explain what stuff is, such as raising an event, what an event is and what it does or how it works.

    Thanks again!
  • I'm having issues with the name server authentication.... Even in the Photon sample capx. It keeps returning a name server error code.... What can be done about this?
  • Thanks for this,
    the only problem I have with the incldued capx, or the tutorials on the Scirra site, it doesn't explain what stuff is, such as raising an event, what an event is and what it does or how it works.

    Thanks again!

    Raising an event is triggering an action within the game. The action triggered can then prompt a response from the other players. For example, If I take a hit and I want to get my health status across to other players, I can simply say:
    > On bullet hit Player: Raise Event [Code- 1] [Data- 50] where the code is a number you use to identify the event, and the data is a value you want to pass across the network... in this case, the amount of damage my player sustained after getting hit by the bullet.
    Then
    >On raise event (Code- 1): Subtract Photon.EventData from Player.Health (Photon.EventData = 50... Remember we set the data to 50 when we raised the event)

    You might have already figured this out. But I'm having a ball with Photon and Construct so I though I should share
Sign In or Register to comment.