[SOLVED] Is Construct functions "blocking" or "non-blocking" ?

0 favourites
  • 3 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • I remember I have this issue long time ago, and now I start using Construct again, and I don't remember how I solve it.

    I got a weird logic in my game, but my code seems good.

    Is Construct functions "blocking" or "non-blocking" ?

    I combine construct events with js code and use a lot of Construct functions system.

    In an event, there are multiple functions action call. Like:

    function1()

    function2()

    function3()

    function4()

    Is function order in an action realible ? I mean function2() is always called after function1() is done.

    Update: I solve it by rewrite my core code, may its not related to the ordering

  • Yep, the order of your function actions matters, and will reliably call them in order.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe the order the functions get called is the same, but they don't have to finish in the order they are called right? I can can have async thread stuff and wait for stuff to complete things that mess up the order. If a function is after a wait 0 it won't get called till later and if I have two of those function1 and function2 I am not sure which gets called first after a wait 0.

    At least it seems this complicated to me though I can't site a concrete example.

    yours

    winkr7

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)