how do i create infinite players on multiplayer

  • when i create the game i become the host but when a peer join ... i see nothing not even a message saying a peer joined why ?

    [main]

    ----[Signaling]

    --------+ System: On start of layout

    ---------> Multiplayer: Sync Player (with Position and angle, precision Normal (float, 4 bytes) at Normal bandwidth (unpredictable))

    ---------> Multiplayer: Connect to signalling server "wss://multiplayer.scirra.com"

    ---------> System: Set group "Host" Deactivated

    ---------> System: Set group "Peer" Deactivated

    --------+ Multiplayer: On signalling connected

    ---------> Multiplayer: Log in with alias Player.User_Id

    ---------> DebugText: Set text to "Connected"

    --------+ Multiplayer: On signalling logged in

    ---------> Multiplayer: Join room "Universe" for game "KS-AgeofDespair2" instance "AgeofDespair" (max peers: 0)

    --------+ Multiplayer: On signalling joined room

    ------------+ Multiplayer: Is host

    -------------> DebugText: Set text to "You are the host"

    -------------> System: Set group "Host" Activated

    -------------> Player: Set MultiID to Multiplayer.MyID

    ------------+ Multiplayer: [X] Is host

    -------------> DebugText: Set text to "You are a peer"

    -------------> System: Set group "Peer" Activated

    -------------> Player: Destroy

    ----[Host]

    --------+ System: Trigger once

    ---------> DebugText: Set text to "Host is active"

    --------+ Multiplayer: On peer connected

    ---------> System: Create object Player on layer "Layer 0" at (100, 100)

    ---------> Player: Set MultiID to Multiplayer.MyID

    ---------> Multiplayer: Associate Player with peer Multiplayer.PeerID

    ---------> DebugText: Set text to "a peer has joined"

    --------+ Player: MultiID = Multiplayer.MyID

    -> (no actions)

    --------+ Player: [X] MultiID = Multiplayer.MyID

    -> (no actions)

    ----[Peer]

    ----[Misc]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)