Kyatric's Forum Posts

  • You do not have permission to view this post

  • And HERE.

  • Normally you can do multiple calls. Use the "tag" property of the requests to differentiate them.

    Then you have to make a Ajax.OnComplete event (as Yann described) using once again the tag to differenciate and know what the data is supposed to be.

    ex: Ajax.OnComplete("authentification") would contain the return data sent by the server after it received a Ajax.Request("authentification").

    The OnComplete is to be out of the loop, since it's an event that will get triggered as soon as the server returns the result of the request.

    This should be documented in the manual by the end of the year.

  • You do not have permission to view this post

  • To be more precise:

    1- "I want to collect game scores for each player and keep them in my site member database."

    You can do that with the AJAX built-in plugin. You'd have to code the server-side script to set and get datas from the database and return them to your app.

    Login screen/authentification is not really advised in JS as eventually, those credentials gould get "easily" intercepted by a malicious person.

    But due to the fact that the application can be embedded directly in a web page/website, you could settle for authentification on the website (classic php script/framework) and use session authentification in your ajax communication, preventing the use of the user's credential, but still making sure the user is who he's supposed to be.

    2- Once again, with clever skills you could set a turn-based multiplayer game with AJAX calls.

    You also have the websocket custom plugin (plugins for C2 section of the forum) that is specifically designed for network communication.

    You would still have to code your server.

    That's why kbdmaster said it is not multiplayer, because, for now, there's no definitive/reusable example or clear documentation out yet. Is it possible, yes. Is it "easy", not really atm, you need to know what you're doing.

    There's a chat plugin available though in the plugins section, and you could maybe consider building upon it, making your own communication protocol for the client/server logic/exchanges. That would make some of the process easier and is reliable.

    3- How events work. That's the "programming" you need.

    So you could set up a basic IA in events. It is all logic after all.

    The complexity of the IA would depend on the complexity you put inside your C2 code, the complexity of the process you set up.

    Tom probably could tell more on the subject.

  • Ashley should have a look at this.

    We'll leave it here for now, but it sounds like some bug in the physic object indeed.

    Same result under chrome and FF, the blocks move on their own.

  • http://www.scirra.com/construct2

    In the left column, under the section "Features", you should find from there. ^^

  • aroh: Well once you added an object audio to your project, you don't need to add it again. So it's natural that it disappears from the object window once added.

    If it is not available when you are creating a new project then there might be some issue.

  • gardnerp: 3rd party plugins are plugins and behaviors that you may have downloaded from the plugins section and installed into your C2.

    If you did not add any 3rd party plugin, the current built-in plugisn that are NOT supported in the arcade are : WebStorage, AJAX, Browser and Facebook. (source: uploading to Scirra arcade Tutorial).

    Touch is allowed in the arcade.

  • I can't tell you for sure, what's going wrong.

    What I can tell you is that you really should use sub-events (How events work).

    I'm pretty sure a strict reorganisation of the code and less splitting/includes (you really don't need to split the code so much) will help settle things down.

    For a better organisation readability of the code, use groups.

    There's not much to be done there to help but massively rewrite the whole thing, which I'm not willing/able to do right now.

    With a cleaner structure, the code is likely to behave as expected.

  • Check the setting of the mime type on your server as instructed in the audio article in the manual.

    For more infos about mime type and how to set it, make a google search and check out your host provider website/support.

  • The loop indeed goes endlessly since its run every tick.

    I suggest you read again how events work, this should help you figure out yourself what's the better way to properly organize your event sheet.

    If you want your loop to only run to 3, once, on start of the layout, put it as a subevent of the event "Start of layout". It will then just run once.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use your global var "Level".

    In startup of layout1, this var allows you to initialise the level 1.

    When in the "between" layout, add 1 to level (since it leads to the next level), and test the value of "Level".

    If level is 1 => go to layout1

    if level is 2 => go to layout2

    Etc...

    Since the use of expressions isn't yet available for this (but on ashley's todo list already) this is the workaround.

    There are other few examples in the how to do list in the section layout as well as the current trick to duplicate layouts (which is, I think, one of your next question if you haven't resolved it yet :D)

  • For the writting effect, look for "Writter effect" in the how do I FAQ.

    You can also find it in my Space Jinx capx (listed too).

  • pennyhaynes: This URL leads me to a "page not found". :(