Hello,
I'm trying to use AJAX plugin in main.js but get an error when I try to access the AJAX's request function:
ajax = runtime.objects.AJAX; // Note: Use exact name as in Construct console.log(ajax); console.log(ajax.request);
I can see that the ajax object exists and I have the plugin added as well. Not sure what is wrong as I am new to javascript.
Any help is appreciated.
Develop games in your browser. Powerful, performant & highly capable.
Nevermind, I figured out that you have to use fetch