MaineMathMan March 15th, 2017 Hi Guys,
I'm loading high score values from a database via AJAX request. As predicted the game starts playing before my "high score" values are loaded. So I get text object that say High Score: instead of High Score: 300pts. What's the best way for me to load data for use in the game? I'd use onload in a typical jss... but what with WADE? Where should I load the AJAX variables? Or should I try to delay the game via "start" objects. I found a couple work-arounds but I'd rather understand the structure of WADE.
MaineMathMan March 15th, 2017 I made async: false, may have solved my issue... but would still like to hear some suggestions.
Gio March 15th, 2017 Hi
If your high score data is in JSON format, you should be able to just add that json data to your scene. The game doesn't start until the scene is loaded, so you shouldn't need any extra logic to handle that.
Someone asked this just a couple of days ago, so I'm going to point you to my reply in this thread. But let me know if that doesn't solve your issue.