guyIGidk's Recent Forum Activity

  • 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
guyIGidk's avatar

guyIGidk

Member since 5 May, 2023

None one is following guyIGidk yet!

Trophy Case

  • 1-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

3/44
How to earn trophies