This forum is read only and just serves as an archive. If you have any questions, please post them on

1 decade ago by Husten


i have a problem with the timing of the start of the game. the game needs some global vars based on lot of other stuff. so i used this sortiing

1. include the impactfiles
2. do the other stuff to get the perfect globals vars
3. start the game with ig.main

but sometime step 2 is faster than loading of step 1, so i get an error, cause is not there. when i place the start of the game in the main.js (so after step 1) it can happen, that step 1 is faster than step 2 and the game starts without the correct global vars.

any ideas? i need to start the game after step 1 and 2 are completed.

1 decade ago by drhayes

Can you be more concrete? What's in step 2 that is running simultaneous to the impact files loading?

Can you not access them in main or, at least, define a function that main calls that then defines them? (Assuming main is the last file Impact loads since it requires everything else)

1 decade ago by Husten

step 2 takes a bit time. it has nothing to do with the impact systems (loads ajaxstuff for example from other servers).

but thats an idea, i try to start step 2 in the init auf impact.thx :)

1 decade ago by Husten

ok works :)

at the end auf main.js i start step 2 as a function

and at the end of step 2 i call ig.main :)
Page 1 of 1
« first « previous next › last »