Multiplayer doesnt work

0 favourites
  • 1 posts
From the Asset Store
_______ Huge collection of metal fixtures ________
  • So recently, i've been trying to make a simple platformer with multiplayer. As i saw in a tutorial, its supposed to have a host and 19 peers, but, every peer sign is as a host! How do i fix this?

    The script so far:

    (-- Is event)

    (---- Is event's action)

    (------ Is sub-event)

    (-------- Is sub-event's action)

    --On start of layout

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

    ---Sync Player (with Position only, precision High (double, 8 bytes) at Normal bandwith (unpredictable))

    ----Add client input value tag "inputs", precision Normal (float, 4 bytes), interpolation None

    ----Sync Player variable Inputs (its a variable ON the player btw) (precision Normal (float, 4 bytes), interpolation None client value tag "Inputs")

    --On signalling connected

    ---- Log in with alias INSTANCE_NAME

    --On signalling logged in

    ----Join room "room" for game GAME_NAME instance INSTANCE_NAME (max peers: 19)

    --On signalling joined room

    ----Set text to "Joined room"

    ------Is host

    --------Set ID (also a variable on the player) to Multiplayer.MyID

    --------Associate Player with peer Multiplayer.MyID

    --------Set text to "You are the HOST"

    ------Is NOT host (or (X is host))

    --------Set ID to Multiplayer.MyID

    --------Set Text to "You are a PEER"

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