ThePhotons's Forum Posts

  • Does the photon plugin work with a cordova export? Will it work on iOS and android through cordova?

    e did not test this yet. Did you? It should work in theory as any other javascript app.

  • Tried today to see if it's working and... surprise! NW.js export works flawlessly with Photon plugin. Nice!

    es, server was updated recently with fixed version. We are still working on couple of websocket issues which may arise on some clients.

  • How websocket processed and how frequently javascript gets called in background depends on platform which you use. Photon lib can't do much with it. For instance, as far as I know, browsers in background decrease javascript call rate to 1 per sec. That still allows to keep connection to the server but not enough to run game logic as master client. I guess master client should disconnect by itself when app goes to background.

    Photon supports self-hosted servers. But you can't connect to such servers with plugin currently. I think we will add self-hosted support in course of time.

  • Has anyone already tried to export a multiplayer game based on the photon plugin as ios-app and confirmed it works on ios?

    Did you search the topic for 'ios' keyword?

  • Sorry. NW.JS is not fixed yet. I hope server guys will have a time for the issue soon.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • We will support C2 long term :].

  • Fish sample is all we have for Photon Construct 2 plugin currently.

    Before starting development, it would be good to get an idea how Photon Networking works in general. You may find this information on doc.photonengine.com .

  • The NW.js issue is still open. Sorry. Our server team was super busy last days. Just started processing the task.

  • What is special about platformer? The plugin simply broadcast messages (e.g. with character positions) to all other clients in the room. Using this simple thing, you can keep in sync clients for any genre.

  • Thanks for suggestions.

    We are working on (server side) NW.js issue now.

    We don't have enough time to expose all js sdk features in plugin and it'a not clear what is most demanded currently. Basics should be enough for most simple games. Note also that some features probably will never be in plugin since it's hard to express them in terms of visual editor.

    The plugin already has short notes on functions and parameters as any other Construct 2 plugin does. You can find more details in js sdk documentation https://doc-api.photonengine.com/en/javascript/current/ considering that all plugin functions based on sdk methods.

  • Thanks for the reply ThePhotons , any idea on how diligently you guys are working on updates for the plugin?

    What exactly you are waiting update for? We are not planning updates currently.

  • Hi,

    #1 Browsers run javascript only once per sec while page is in background or minimized. I don't know if Construct 2 or browsers support handling of these events. If not, you may try detect them by measuring time between calls. After going to bg detected, you may send notification to other players or leave the room.

    #2 Most likely exported binary does not contain WebSocket object required for plugin. Several different websocket modules available for nodejs but they do not expose WebSocket objects in global namespace like browsers do. Probably some sort of adapter required. It's not clear currently how to integrate nodejs, websocket and Construct 2 plugin.

  • First, even non-coders should understand how Photon works. All about lobbies, rooms and players. See http://doc.photonengine.com/en/realtime ... uick-start and other documentation.

    Plugin simply exposes most of Photon features in C2 editor. Two demos available for plugin show how to use these features.

    Sorry, we don't have tutorial for Photon plugin currently.

  • Realistically, with the free acount, what kind of games can it handle with how many rooms, peers? From the numbers shown on the website I think I can only use it for a turn based game with maximum of 20 peers/day. Someone experienced can confirm or deny?

    Free account is limited to 20 ccu. Ccu (concurrent users) means number of clients connected simultaneously (peers). There are no other "per day" or room count limitations. In theory you can have hundreds of users playing in turn.

  • Hi,

    No. Currently only methods for connecting to Photon cloud exposed in plugin.