What multiplayer options are there?

  • > hey RetroSpock i myself am looking at multiplayer options and photon is a bit expensive for me as well. Thank you for this post and lennaert for his suggestion <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> However, if you do get out for when a host leaves and a peer is switched to a host please share <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    >

    I'm glad it's not just me that things Photon is a bit pricey for what you get!

    Let me know how you get on <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    https://github.com/polpoy/colyseus-construct-plugin exists, it's the client for http://gamestd.io/colyseus/ (Open sourced) and free to use, Colyseus can hold up to 200 concurrent users in its current state and it's about to get a major update that will allow for more scaling

    https://www.evennode.com/ 6$ a month for 3 nodejs servers

  • hey lennaert can you share with me a quick example of host migration when the host leaves so that the game doesn't quit. would be greatly appreciated

    There never really is a quick example for something like that, generally it needs to get suited to fit a specific mechanic.

    I made an example and commented it.

    capx

    It has 2 things, ID preservation and reconnecting to a new host maintaining locations.

    The host can even reconnect as peer and get his old location back.

    It uses player object sprites on which you can pin an avatar, the idea is that the peers/host preserve the avatar if a player disconnects, or host leaves, and with those details players can reconnect.

    ^_^

    edit: keep in mind when testing on more then 2 chromes, the local storage of the 2nd incognito window might use the cache of the 1st incognito window

  • thanks Phacanu shall take a look. lennaert thank you so much for the capx. your help is greatly appreciated also i do understand that it's never really a quick way to do something in that regard lol my apologies there.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • .

  • https://github.com/polpoy/colyseus-construct-plugin-example

    gives you the very basics on creating a multiplayer client and controlling it based on your specific ID and having the sprites position update over the network, It does not cover client side prediction tho

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)