artheads's Forum Posts

  • Hi, I'm trying to get an array as JSON in JavaScript, but it seems like the Array API doesn't provide the method, so how to achieve this?

    const myArray = runtime.objects.myArray.getFirstInstance();
    const myArrayJSON = myArray.getAsJSON(); // My dream but not reality?!
    

    Tagged:

  • Wow, thank you all guys!

    R0J0hound special thanks! I like your approach in the first example.

    I'll be back if I get the desired effect with Canvas too, but if not, I'll probably use your approach #1 with a little tweak allowing it to stretch by its axis.

    Happy New Year! :)

  • Thanks, R0J0! I'm trying to do it with Canvas instead :))

  • This wobbler should... wobble and also stretch by centrifugal force, but tend to return to its initial angle, length and curve, like a spring does. Is the physics the only way?

    I'm able to create a straight "line" from sprites with physics, that behave pretty much like this, but I can't realize how to give a proper angle to each piece, so they will form a curve line like on the image "at rest".

    The second problem is I'd like only the load-tip (a ball on the wobbler's end) to collide with other objects, but not the wobbler's "line" itself, collisions should be disabled for the "line" - and that seems impossible using physics?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • Make sure the server is configured to use the same cache...

    Done

    You may actually find it works better with offline support enabled...

    Yeah, I already tried it, and there were some problems there too, but I don't remember which ones ))

    Another strategy is to use different URLs...

    Good idea! Will try that.

    Thank you!

  • I get complaints from my players, and sometimes I see it myself too - a black screen after the game is updated, it happens mostly on iOS, but less often on other devices.

    The problem can only be solved via 'Clear Site Data' in browser console then Ctrl+F5 with enabled 'Developer Mode' on the phone, while connected with USB cable to the desktop computer, what is almost impossible for an average player with iPhone or Android.

    Offline Mode is disabled in the project (as not needed);

    Nginx cache is disabled - Server headers:

    cache-control: no-cache cache-control: no-store, no-cache, must-revalidate, proxy-revalidate

  • If you use "top" alignment

    Thanks Ash, I'll definitely try 'top alignment' and will back here (hope to mark it as solved) :)

  • Thank you, all guys, now it's clearer. Unfortunately, we'll have to use Sprite Font, despite the lack of some nice features.

  • Try another vertical alignment setting

    Hey dop2000, thanks for the idea, I'll try to change my center/center to something else, didn't think about that :)

    sprite font.

    Yeah... think I'll go with it at the end.

  • Hey guys! I'm making GUI using hierarchy:

    1. 9patch background - parent;

    2. Text with icon - child with transform X,Y;

    Then I just position the parent according to the screen size. This works great everywhere (I mean web HTML5 export) except on God damn iOS... Look at that shift:

    Any ideas on how to avoid this?

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Yes, that sounds promising. Have you researched this aspect of flowcharts already?

  • 500^(increaseRate*loopindex)

    Well, this increases numbers crazyfast. I ended up with round(500 * 3 * loopindex)

    Thank you usbtypec!