A little suggestion

0 favourites
  • 15 posts
From the Asset Store
Help the cute broccoli to get past all obstacles in his way!
  • I used to have a plan that creating a game server by C2, and maybe it's work somehow.

    But maybe supporting mysql will be better, just a little suggestion, to make C2 powerful.

  • Sorry SwirlYip, but it looks like the only way to access MySQL from Javascript is through server-side PHP scripts: http://stackoverflow.com/questions/3020 ... with-mysql <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I just want to create a server by C2.

    Now that it seems impossible?

  • A MySQL server? no, that's not possible.

    A multiplayer game server? Yes, that's possible through the built-in multiplayer object. Here's some tutorials on using it:

    https://www.scirra.com/tutorials/892/mu ... 1-concepts

    https://www.scirra.com/tutorials/906/mu ... -chat-room

    https://www.scirra.com/tutorials/979/mu ... ial-3-pong

    https://www.scirra.com/tutorials/915/mu ... -time-game

  • In the Multiplayer Beta additional features like storing data, achievements and playerstats on the server were mentioned. Is this still coming?

  • A MySQL server? no, that's not possible.

    A multiplayer game server? Yes, that's possible through the built-in multiplayer object. Here's some tutorials on using it:

    I not the multiplayer object can create a multiplayer game.But as the tutorial said, the server is Scirra offical server. I want to build a server on my own server. That I can manager player like online games.

    So please, how can I do that?

  • the Scirra official server is just used for other players to find your game, it's like a master server list. You still code your "server" for your game and code your own way to manage the players. As long as your server is always running, you will be the only person who can control the server.

  • the Scirra official server is just used for other players to find your game, it's like a master server list. You still code your "server" for your game and code your own way to manage the players. As long as your server is always running, you will be the only person who can control the server.

    Really thanks for answering, but I am not sure if I am totally understand.

    Like how do I manager the server and game for the signalling server is not my server, and not under my control??

  • the Scirra official server is just used for other players to find your game, it's like a master server list. You still code your "server" for your game and code your own way to manage the players. As long as your server is always running, you will be the only person who can control the server.

    Maybe the root of this question is, what is signalling server??

    To be honest, it's the first time I've heard about it.

  • Signalling server is the central point clients connect to in order to re-direct to your game server. I don't know if you can make one yourself, but there is no need to do that as it merely allows players to join your server.

    All things that happen regarding the game itself are on your server, or if you allow people to host their own servers then through them.

    I take it you're trying to do something like an MMO?

  • Signalling server is the central point clients connect to in order to re-direct to your game server. I don't know if you can make one yourself, but there is no need to do that as it merely allows players to join your server.

    All things that happen regarding the game itself are on your server, or if you allow people to host their own servers then through them.

    I take it you're trying to do something like an MMO?

    I am so sorry that I still don't get it.(Maybe I am a Chinese and not very good at English, but I am trying hard to communicate with you.)

    1.You said “All things that happen regarding the game itself are on your server”, does it mean that when people connect to the signalling server, their game itself will be a server, no need a real server??

    2.And you're right, I just trying to do something like an MMO, which I can monitor players with my server. Can C2 do that?=

  • No problem, Multiplayer is an advanced concept so I understand

    1. Essentially yes. If you are the first person to host a server and leave it running 24/7 nobody else will be able to become a server if you want to prevent that. (or you can password protect it).

    2. I believe it's possible, it's just a matter of adding extra functions for when the program is chosen to be server (Eg: You start the game first).

  • No problem, Multiplayer is an advanced concept so I understand

    1. Essentially yes. If you are the first person to host a server and leave it running 24/7 nobody else will be able to become a server if you want to prevent that. (or you can password protect it).

    2. I believe it's possible, it's just a matter of adding extra functions for when the program is chosen to be server (Eg: You start the game first).

    Ah~I totally understand.

    It means, if a create an app, which can connect to a "xxx"game,"xxx"instance and "xxx"room,and I write some event to monitor players, it will just become a server!

    And, I create another app, which can connect to the some game/instance/room, than they can be what I wanted they be~!

    It that correct??

  • Very close! The first player into that room will be the server, and I think the Multiplayer plugin has a condition that can trigger when this happens, then you can turn on the monitoring players code instead of the gameplay code (or turn on both if you'd like to play and monitor at the same time).

    I think you can have a separate version of the game for players yeah, but they have to have the same game name or they might not find the server I think.

    I've not yet played around with Multiplayer too much, but if I get time to make an example I will upload it in this post

  • Very close! The first player into that room will be the server, and I think the Multiplayer plugin has a condition that can trigger when this happens, then you can turn on the monitoring players code instead of the gameplay code (or turn on both if you'd like to play and monitor at the same time).

    I think you can have a separate version of the game for players yeah, but they have to have the same game name or they might not find the server I think.

    I've not yet played around with Multiplayer too much, but if I get time to make an example I will upload it in this post

    Thanks a lot for answering, you are so kind!

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