Hi!
I'm wondering how the "set properties listed in lobby" can be used to retrieve custom room properties from the lobby?
As far as I understand, you have to set it to be accessible in the lobby in order to retrieve it from there.
I tried doing it like this without it working:
-Photon: is connected to a lobby
Photon -> set name of local actor to "name"
Photon -> join room "Room" in lobby (create if not existing)
Photon -> Set custom property "theProperty" of my room to "testing"
Photon -> Set properties listed in lobby to "theProperty"
Text -> set text to photon.RoomProperty(photon.MyRoomName, "theProperty")
The text as a result then says 0.
****EDIT*****
I saw in this forum post: forum.photonengine.com/discussion/10574/set-via-room-setcustomproperties-not-available-for-roominfo-class
that you have to set the properties before creating the room. But how is that possible in construct 2? The plugin doesn't have a field to pass room properties when creating a room.
If I do this:
-Photon: is connected to a lobby
Photon -> set name of local actor to "name"
Photon -> Set properties listed in lobby to "theProperty"
Photon -> join room "Room" in lobby (create if not existing)
(also tried create room action)
Photon -> Set custom property "theProperty" of my room to "testing"
Text -> set text to photon.RoomProperty(photon.MyRoomName, "theProperty")
It returns 0 still.