Dayjay's Forum Posts

  • Is setting a session web storage variable a option for you? Just check it's content every now and then..

  • Other side of the country :*Other side of the planet :(

  • The getusermedia API is your friend: dev.w3.org/2011/webrtc/editor/getusermedia.html

    It is afaik only supported by Chrome, Safari and Android Browsers atm. Implementation isn't really that hard if you know some js. If I would have time to study the Construct 2 SDK docs I could implement it. Maybe the next week...

  • How did they made the networking? I mean, what do they use for the backend (nods.js?) and how do they let the clients communicate with it? It does run very flawless.

  • Yes, it's possible but you need a server backend. Construct alone is not enough.

  • I'd say it is possible (don't know about the monetization issue) but just like in Flash you would need the implement many, many things server side and using ajax to retrieve the data.

    Edit: Social Games aren't real time usually, or?

  • Just search for 'ajax multiplayer', 'turn based multiplayer' or something.

    Depending on how good your programming knowledge is, it's pretty simple.

    Very simplified Example for a chess game:

    After a player finishes his turn he sends the move he made to the server. Then you would set the player state to "listen".

    The second player (or the player who does "listen") does ask every X seconds if the other player has finished his turn. If yes, get his turn he made and set the state of the second player to "playing".

    Of course you would need some anti cheating measures and you need to validate the move you received.

    It would be better if WebSocket would support UDP or we had something like webRTC, CU-RTC .

  • Of course you could make a online chess game (or any turn based game). You wouldn't even need websockets, ajax would be enough.

    Edit:

    Joannesalfa

    Are they planning to make a webRTC plugin for Construct 2?

  • Using my language flags inside the title tag (i. e. <div class="lang:english">Home</div><div class="lang:german">Startseite</div>) further decreased my rating, unfortunately.

    Which bares the question: Why is there no legit way to have a multilingual title tag yet?

    Why don't you use PHP, ASP.NET or whatever and detect the browser language / user location if you have a website where you need to care about multilingualism?

  • Hi,

    I am currently working on a isometric strategy game. While creating the map background (terrain, rivers, ...) I was thinking if it is better to make a (very) large image as background (X000px x X000 px) instead of placing object for object separate.

    I may hit the limit of my english knowledge but I try to explain my problems:

    A river or a rock do still need a collsion box.

    If I use a huge image as background I would need a image as invinsible hitbox for each object I need collisions for (I do this already for all my units) .

    If I would set every stone, tree and a single river as a object I would still need a hitbox for each object which would double the amount of objects.

    What would you do? What is the best way to make a RTS Map with the least perfomance hit?

    The amount of work is nearly the same so that is not a problem.

    Some informations that may be relevant:

    • the player can't create new objects (buildings, units).
    • I have basically the following layers now (down to top): background (see above), units, other objects (buildings, usually objects the player can interact with), HUD.

    Thanks :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is already a Tiled Background object.

  • Well, I decided to store the settings made into web storage (session storage) and to load it from there.

  • I know how I can request data within the game.

    I try to explain better:

    The player is on the website of the game (the game is not loaded, the website is a stand alone HTML page!). He chooses some settings. After choosing them he starts the game by clicking on the "Play Button".

    I load the game after he clicked on the play button but I need to pass the settings he made. After the game finished loading it needs to get the passed data and choose which layout to load.

  • I am bumping this thread because I have a very similiar issue.

    I want my game menu to be a HTML/PHP Website. The player should choose the level he wants to play and some other options (Units,etc.) on the website.

    When the player clicks on the play button the website should pass Post/Get Parameters to the game which then decides which Layout and Event Sheet to load.

    Well, is this possible? And how?

  • I don't think Steam currently supports HTML5 games

    The only requirement is (afaik) that the game needs to be started with a .executable.