mahdiarn's Recent Forum Activity

  • What I usually do is put .ico file in the root of exported project. Then modify index.html and add this inside <head></head> tag:

    	<link rel="icon" href="/favicon.ico" />
    
  • I'm sorry since I cannot edit my post I'll rewrite the example for better visual

    Function A

    calls AJAX get data

    wait-for-previous-actions

    browser log AJAX.LastData

    set return value from AJAX.LastData

    Function B (async)

    Has localValue X as number, default number -1

    set X with value Functions.A

    wait-for-previous-actions

    browser log x

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I have two functions that one of them is depended by the other function.

    Example:

    Function A calls AJAX get data wait-for-previous-actions browser log AJAX.LastData set return value from AJAX.LastData Function B (async) Has localValue X as number, default number -1 set X with value Functions.A wait-for-previous-actions browser log x

    Supposedly the AJAX get value 20. I expect the browser log on function B will returns 20 but returns -1 instead.

    the log ordering also didn't quite right, example in console log ordered chronologically:

    {variable x}

    {AJAX.LastData}

    Is there any workaround that I have to do?

    Tagged:

mahdiarn's avatar

mahdiarn

Member since 14 Nov, 2021

None one is following mahdiarn yet!

Trophy Case

  • 3-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies