igortyhon's Forum Posts

  • Hi. It all depends on the overhead.

    If you need to calculate 60 times per second, then I would recommend to apply overlapping objects to primitive shapes, for example two circles, it is easy to calculate the area of their contact or rectangles.

    If you need to calculate 30 times per second or less, you can use more accurate methods. I would use the Montecarlo method.

    All these formulas are available online.

    Probably you can use the built-in methods of Construct3 itself, for example, place 10 image points on the object and check how many of them will be above the overlapped object. I think you can still come up with a couple of crutches.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is a very handy tool, and along with a brief description of each function, it helps a lot when working with the engine and any plugins.

    When composing expressions, you can not just type them in, but find the necessary ones, as I have shown on the screenshot.

  • Hi. This method doesn't work?

  • Here's an iteration of that:

    https://www.dropbox.com/scl/fi/jrr6hko1kq0xwy77mqxr4/tetherObjects_noDragging2.capx?rlkey=bbk65nj0emtv594scaklirpa2&st=l280easa

    R0J0hound You got a very cool example!!!

    I put exactly your variant in my source, thank you!

  • Hi.

    I've already had someone ask me about such a rope between players, I've put together a minimal example, maybe someone else will find it useful.

    File c3p

    P.S..

    I've changed the source, the version that came up with user R0J0hound is more cool.

  • An archive with an example.

    kibaga.org/c3-example/file_uploads/index.php

  • In fact, things are different from what I had understood.....

    Maybe you should find someone to solve this problem for you, I'm sure that any API has documentation and an example of how to use it, not the pieces you give here.

    Perhaps there is a colleague who is free now, I don't have time to solve your problem. I thought some general advice would help, but I see that in this case someone needs to sit down and do the work.

  • I have a question about how to work with returns. How do I check if the message is equal to SUCCESS so that I can send the second POST?

    Посмотрите, содержат ли полученные данные необходимые ключи, и если да, разберите их.

    Construct3 имеет множество системных функций для разбора текста.

    EDITED:

    In your example you used URL as URL instead of the http address. Is this a variable that is not declared with the others?

    It's just a variable containing the address, you can insert a string with the site address.

  • I don't know how to help anymore, you just need to put together a small template and try it until you succeed.

  • Just to see if I'm on the right track. I took this example from another post.

    I'd have to include the data and then send the post as shown, right?

    Hi. Yes you are on the right track, you have collected all the data you need into a json object and you are passing this object. After that the server should send you a response like this. (status1msgSUCCESSlaunch_urlhttp://google.com)

    The question remains whether the data in this object looks the way the server expects it to look or not.

    But I'm doing it easier, I'm just like on the screen.

  • It's quite simple, you constantly send a POST request with a string in the string and put the data as they require. The only thing is that you will need to format this string with data correctly (quotation marks or brackets, etc).

    You should get a response and this response will contain a string with data in the format they specify. You parse this string into the data you need via tokenat.

    And so constantly, of course in the code you need to provide for communication failures and errors, so that you do not spam them with requests too often otherwise they at the server level will block you.

    I have attached a screenshot with a piece of code for the POST request and response, this is an example data you should enter your own.

  • Hi. If it is not a secret it would be better to say which API you want to pull.

    I think the response will be higher.

    For example, I can't give lessons, but if I've worked with such an API, I'll share an example.

  • You can just send data by collecting it in a string, that's how I used to do it.

    The screen shows the POST request and the server script.

    Nowadays I would suggest encrypting the data before sending and storing it on the server in encrypted form. But it will do for an example.