Daggio wrote:I have a question though: when does the "On join lobby" triggered?
does it get triggered when the game first played or when the player leave a room? (or both?)
ThePhotons wrote:1.Random matchmaking is in our todo list but I don't know when exactly it will implemented.
2. Please find room list handling sample in demo-test. Looks like you iterate extra room. Use Photon.RoomCount - 1 as upper bound.
3. You do not need to send strings or any other payload. Assign different event numbers to each key.
Event behavior is not affected by payload type. This is hardly possible that same event works with coordinates but fails with string. Please search for errors in browser console log and let me know if something useful is there.
4. Photon events are identified by numbers. In conventional languages constants or enums are used for such things as event codes. If you know C2's equivalent for constants, feel free to use it.
Users browsing this forum: No registered users and 5 guests