[Plugin] Photon Cloud

From the Asset Store
2D realistic clouds
$16.10 USD
30% off
2D realistic cloud pack has 11 different clouds included.
  • New plugin version available: https://www.photonengine.com/Download/P ... -0-0-6.zip

    • stats access has been fixed (reported by

      Portvayne)

    new regions kr' and 'in' added

    region dropdown list issues eliminated

  • As you may know Construct 3 beta will be released soon, and I was just wondering if you're planning to make a version of your plugin available for Construct 3?

    I do not see the reason why we can't support it. Depending on required changes it may take more or less time.

    Let's wait C3 release first. Then we can tell more specially.

  • Hello #ThePhotons,

    I am happy to use this plugin.

    I have one of kind enemy named enemy01, spawn randomly every 3 to 5 second, in 1 minute I have about 20 enemy01, some enemy01 already destoyed outside screen.

    My question is how to create sync for peer for enemy01 position and angle for realtime?, include their existence begin their already created from host side and after peer get login?

    Could you give me some simple example for ease my experiment.

    Thanks.

    Photon allows you to broadcast messages in a room.

    To create or destroy object, send messages stating that. Other clients in the room should create or destroy objects accordingly.

    To synchronize positions, periodically send position updates. On other clients, set position as message received and Interpolate positions between messages.

    The most similar sample is demo-pool. It sends not current but target position which used by fish instances on all clients to move to.

  • ThePhotons does this plugin working on NW.js and Cocoon.io Canvas+ ?

  • Hello,

    I tried your Multi Photon Tutorial and ended up with some issues (jittering objects, very bad synchro, etc...) but I perfectly reproduced what you did in the tutorial and there is no other events to conflict with.

    Could you take a look to my .capx to see what's wrong ?

    Best Regards,

    LINK:

    drive.google

    .com/file/d/0B4Bv9lmySjGsM0txRHNMT1dqcW8/view?usp=sharing

  • Would it be possible to get server clock time with a ping to compensate the distance so that actions can be tracked in order to know who shot first, and to implement lag compensation by being able to calculate when an input was sent with precision to resolve inputs more accurately ThePhotons

  • ThePhotons does this plugin working on NW.js and Cocoon.io Canvas+ ?

    Do you have any problems with this? It should work.

  • Hello,

    I tried your Multi Photon Tutorial and ended up with some issues

    ...

    Hi,

    What tutorial did you try? Can you post a link? We did not publish tutorials for Photon C2 plugin.

  • Would it be possible to get server clock time with a ping to compensate the distance so that actions can be tracked in order to know who shot first, and to implement lag compensation by being able to calculate when an input was sent with precision to resolve inputs more accurately ThePhotons

    Currently server time and ping are not available in Photon js sdk and C2 plugin. You can measure ping by sending packets with timestamps to the client itself (set TargetActors to str(Photon.MyActorNr) in "Raise event")

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi, great work, but some question :

    with construct2 multiplayer plugin, if we create game like Clash Royal ( i mean a multiplayer game with 2 player and realtime ) , the first player will be Host and 2nd Player will be peer. and if Host disconnect from game for any reason, peer can't continue with game and when host come back, the game has gone !

    another side, when Peer disconnect from game ( internet, mobile battery and etc. ) , it can't return to that game.

    what about with Photon server and your plugin ? ( sorry for bad English)

  • hi, great work, but some question :

    with construct2 multiplayer plugin, if we create game like Clash Royal ( i mean a multiplayer game with 2 player and realtime ) , the first player will be Host and 2nd Player will be peer. and if Host disconnect from game for any reason, peer can't continue with game and when host come back, the game has gone !

    another side, when Peer disconnect from game ( internet, mobile battery and etc. ) , it can't return to that game.

    what about with Photon server and your plugin ? ( sorry for bad English)

    I think I can answer because I am working on a similar project. Do not take my explanations as certified, it's just my personal thoughts about Photon (I did not take a look deeply in the JS code).

    In my opinion, you shouldn't search further; Photon is what you need. A game like Clash Royale (or any game where there is a need for a server to host a lot of information), the scheme peer-to-peer is not applicable. What you need is a "server/client" scheme; AFAIK, that's how Photon works (your players -clients- will automatically connect to Photon servers -nameserver/masterserver- and they will act as master clients). Every information sent by one player will transit through Photon server before reaching the edge player.

    Although it may sound like a "disguised" peer2peer connection, Photon's real-time also and mostly offers matchmaking, with lobby handling and all the whole thing, which is just perfect (assuming you are making a game with a matchmaking/lobby management). That wouldn't be possible with a simple P2P connection.

    Besides that, it can be a real hassle to master Photon's plugin. From my experience, I think the tricky part is to clearly define what element of your game will transit via Photon servers and what element will remain local. It depends on a lot of things.

    A good start to me was the following tutorial, which should help you as well: https://www.scirra.com/tutorials/9431/f ... ith-photon

    Good luck <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

  • bvandenborght Thank you for detailed clarification.

    A few notes:

    mostafanastary You should choose for host not random player but master player ('MasterActorNr' expression) which assigned by Photon automatically at game start and when current master leaves. Design game logic so that new master player can continue running the game after old one has gone. E.g. you can store game state on each client but update it only on master.

    [quote:52gofpzx]what about with Photon server and your plugin

    You need only choose "Self Hosted" in HostType dropdown menu in Photon setting and set server address. Everything else should work exactly as in cloud.

  • Hey guys, what's the best place to better understand the Photon plugin?

    I spent days trying to figure out how to have multiple players on screen and have each player move across all screens in real time only to have another Construct user show me how it's done in a few lines.

    Also, I've noticed that after a few minutes, a player would randomly stop dead and their position won't be updated further. How can this be fixed?

    CapX here: http ://s000.tinyupload.com/?file_id=02802319115309673895

    I'm trying to figure out how to attach a turret to the vehicle and fire a bullet, again in sync with all players not just locally. I honestly have no idea what I'm doing and would love to better understand the photon process. Thanks!

  • Hi RetroSpock

    On your question about documentation: http://forum.photonengine.com/discussio ... t-2#latest

  • Thank you ThePhotons!

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