Where can I learn to use Photon plugin for Construct 2?
in JavaScript
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!
Please help.
Thanks!
0
Comments
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.
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!
> 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