Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I was trying to parse values from a text file. So when i used AJAX it seems like there is a delay to wait for the request to be completed and during that all the dictionary keys i previously used which i am replacing with AJAX don't get filled for the other events to be run with. This causes the game to not even start. Before this i had used events to set all the dictionary key initial values so it was instant causing no problem. But now what would be the most efficient way to deal with this ? Should i add a flag to everywhere where i am using a dictionary key to solve this to wait for the AJAX request to be completed ?
I usually do this:
On start of layout:
...AJAX request "somefile"
...Wait for signal "AJAX_Finished"
...Enable user interface, do other stuff
On AJAX "somefile" completed:
...Dictionary load from AJAX.LastData
Develop games in your browser. Powerful, performant & highly capable.
Thanks a lot again. It took a bit of experimentation with it yesterday and it's working very well now.