Joskin's Forum Posts

  • No, everything is fine in the url, if I set up the url not coming from the button variable everything work.

  • Should I post this to the bug section ?

  • Hello,

    I'm trying to make an Ajax request with a dynamic url, depending of the button clicked. Each button got a variable called requestJson, so when I click the button I called :

    Ajax -> Request : Button.requestJson

    [attachment=0:380ukxrr][/attachment:380ukxrr]

    But the ajax request url is empty and I get nothing back, where am I wrong ?

    If I debug the buttons variable they are filled with URLs. Spend the last 2 hours on this stupid thing !

    Thanks !

  • Saving and loading in the same event ?

    Si if Highscore is initiate at 0, you save it at 0 and load it at 0, it will always be at 0.

    Save it at the end of the game, and load it at start of layout.

    It will works on android

  • Did you receive an error with multiplayer.error ?

  • nanitoz Attach your capx, I'll have a look at your system. removed is capx because it's his project, with arts and audio from his team

  • Can't you test with value at 2 and try to connect 2/3 peers ?

  • Use the system expression int(Multiplayer.message)

    With int() you can convert a string to an int.

    And with str() you can convert an int to a string.

  • Indeed that's a lot of variables !

    You could use an array instead of 100 globVar, and the saving would be easier (save the array as JSON).

  • Something like :

    background-color: black;

    color: white;

    Look at CSS examples on the web

  • You could use webstorage : https://www.scirra.com/manual/120/webstorage

  • Ashley said it's on the todo list. For the moment you can only get the game instances

  • Well, you wont find tutorial answering specifically your questions, but you should start by the basics :

    https://www.scirra.com/tutorials/37/beg ... onstruct-2

    And have look at the templates included in Construct 2, when you create a new project the templates list will appear.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Why not add a condition on your spawn and move instantly the object spawned ?

    For example is your object overlap a sprite at the middle of the screen move it randomly to the right/left/top bottom of the object ?

  • Hi,

    I'm working on my multiplayer game and I was wondering how to sync the round timer. So my game is made of rounds and each take 30 seconds.

    Even if I start the layout at the same time, that doesn't mean every peer will start at the same time. I tried to start when everyone send "ready" to the host, but when applying some lag, it's not sync.

    Should I put the timer on an instance variable called "GameManager" and sync this one ?

    Any idea ? Tips ?