- Last Active
- Registered, Administrator
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.
Scirra Photon plugin forum itself is a good source of information and support.1
photon.lua is compiled Photon lua library. We do not provide sources for this library.
Lua should successfully load this file in runtime with
photon = require("photon")command. After such import all Photon modules are available via
See samples in SDK package. Among them you will find standalone demos running with lua.exe w/o Corona.
Libraries are not supposed to be opened in editors.
As workaround, move PhotonChatApi folder from Plugins to upper Assets folder after import or completely remove PhotonChatApi if you do not use chat api.1
Take a look at room custom properties. All clients share same room properties set.
You may try player custom properties as well, but there is no guarantee that same property is different for different players.1
You hardly need OpCreateRoom. it's mostly for internal use.
CreateRoom is member of PhotonNetwork. So PhotonNetwork.CreateRoom(...) should be ok.
Check PUN demos for more PhotonNetwork.CreateRoom usage examples.1