Kyatric's Forum Posts

  • : what string expressions would you need ?

  • Your screenshoot does not show (the url seems wrong).

    It's not normal to get a popup on animation playing (if you haven't asked for it), but you're the only one I heard with such an issue, are you sure your browser and your graphic card drivers are up to date ?

  • Behaviors and effects already have actions to set them enabled or disabled.

    Manage it in a "Start of layout" event.

  • BTW very interesting to use loose boundaries (X <= target.X+1)

    As you notice in the text object, the value returned by lerp is a (big) float.

    So waiting for the exact value of Start.X and Start.Y takes quite some time.

    Checking for a 2 pixels range makes it more "intuitive".

  • You should post a capx and define precisely what's happening and what you would be expecting.

    The way you described things, it makes about impossible to provide any help.

  • I don't think it's an issue with Construct but rather with your code.

    The only way I could observe the result you talked about was when I caught/dragged again the item when it was coming back to the start.

    Look this example, I'm making it so you can't drag again the object before it went back to the start.

    And so I can't make it stop like in your project.

  • Does this topic helps ?

  • What you display is the layout properties.

    What you are looking for is in the project properties, when you click the project bar.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check for errors in your browser.

    Be aware FF is stricter than other browsers (in JS execution).

    Also maybe the part about not secured server is causing the issue.

  • I'm afraid the server side programming is out of the scope of these forums.

    If the two clients don't sync, there might be an issue in the code of your server that handles this part, or in the code of the client.

    As far as client (C2) goes, it's impossible to tell as you haven't posted the source (capx) for us to check out.

    You might want to seek help on the official website of your server (node.js I presume) too (especially if the issue is server side).

  • Agreed with tanoshimi.

    By the sound of it, your server should produce the replay, and the players will have a C2 replay viewer (that allow them as well some "programming" of the battles through the interface you'll have determined).

    The server will serve the replay either in Json (for arrays or dictionary) or even in XML.

    This way you ensure both clients will replay the very same sequence, having had the randomness calculated on the server side to ensure the same result for both players.

    Server side isn't managed with construct2, it needs to be handled in regular coding language (java is a possibility, javascript is another on a node.js server for example).

    The fact is the clients should merely be replay viewers with an interface to allow each player to determine their next moves (sends the infos to the server).

  • Joannesalfa: what about them ?

    I'm really sure it's a matter of organisation.

    If you don't want the buttons to be pressed when they are invisible, just add a condition to check they are visible when clicked...

  • Don't forget to put the animation speed to 0.

  • Joannesalfa: It's not a bad practice if you're organised.