adventurist's Forum Posts

  • Right, so I also updated to the latest beta version since I hadn't done that already, then I changed the game instance name to be unique and tried again. This time I joined as host the first time in one tab. The second tab I entered as a peer, but again, no other peer present, I was the only one listed in there. Same in host tab, the peer didn't show up in the list.

    After a few seconds, I got kicked from the peer tab. The host tab kept running.

    I don't know what the unrelated connectivity issue there could be to be honest. My internet connection is working fine, maybe I accidentally set some setting somewhere.

    EDIT: The messages shows I connected to the chat room both times, one time as host and one time as peer. But for some reason none of them shows up in eachothers lists and no messages are shown for the other user when typing them in and sending them.

    Thanks.

  • Hello!

    I'm wondering if the multiplayer still works as it should with construct 2? I know construct 2 is being phased out, so I'm wondering if the signaling server is not working correctly?

    I was working away on a project and noticed I couldn't send messages from the peer to the host, so I decided to test the chat example without modifications, and it seems like its not working either. I open two Firefox browser tabs and log in to the chat example. In each tab it only lists one user which is the one I logged in with for the specific tab. Then after a few seconds, the host one that I opened up first suddenly gets kicked out.

    So any info on this Ashley?

  • You do not have permission to view this post

  • Seems like the last bit I tried in the previous post does work, but only if you retrieve it with PropertyOfMyRoom, and not with RoomProperty.

    I can only retrieve the room property after one has joined the room, but not before, even with the "set properties listed in the lobby" before creating the room. Why's that?

  • 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.

  • Ah I made it work.

    Had to dig in the forum to find the answer.

    For anyone else who want's to know:

    To set a textbox or a list to have a custom font that's in your project files folder, you have to first add an empty text field to the layout that uses the "set webfont" action.

    Then any other object like the list object can have that font by simply using the "set css" action to: "font-family" and value: "thefontname".

    I'll write a tutorial on it too. :)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ah yes I see. Makes sense.

    So you wouldn't perhaps know how to set the list to use a .woff font I imported? I've been following this tutorial that's meant for a text object:https://www.scirra.com/tutorials/557/using-any-fonts-in-your-project

  • Hi!

    Thanks for your help. :)

    I managed to make it work with web-fonts like this:

    But yeah, the custom font I imported doesn't work.

    I'm not sure where the code you provided should go?

  • Hi!

    I'd like to know if there's a way to use a custom font in a list object.

    I know the text object has a "set web font", but the list object doesn't have that. I have imported the font as .eot, .svg, .woff, .ttf to the project files and the stylesheet for it is there too.

    How would yo do it with the "set css" action? It doesn't seem to work if I set it to the font name as specified in the stylesheet.

  • You do not have permission to view this post

  • I managed to make it work with comparing if its more than -40 instead of "not equal". Still not sure why the "not equal" wouldn't work as it works with other comparisons like an objects x or y value for example.

  • Hi!

    I have an event where I every 0.2 seconds set a sound to it's own volume -1db to fade it out, but only do this if the volume does not equal to -40. The fading away of the sound works, but it wont stop when it equals -40.

    So it looks like this:

    - Every 0.2 seconds

    - tag "song" is playing

    - audio.volume("song")≠ -40

    set volume to Audio.Volume("song") - 1

    set text to Audio.Volume("song")

    I can see in the text object that it just keeps going past the -40.

    Not sure why it does this. Does anyone have any tips or insight on this?

  • You do not have permission to view this post

  • Hi!

    I've been trying to wrap my head around this new GDPR thing that is coming to effect on May 28th this year. I'm wondering how it will affect us sellers in the Scirra store and if we will have to do anything to comply. As far as I see we don't have any personally identifiable information about our buyers in our own seller accounts, so it probably wouldn't affect us directly, but I am uncertain and just want to hear with any staff here if you have any insight on this matter?

    Cheers.

  • You do not have permission to view this post