Hi,
Today when I tried to run a game I had built a few months back, I got an error because the code found in a script file from the Scripts folder did not load.
I pretty much tried everything but nothing works.
Here is what I have tried so far
- Do nothing since the files from the Scripts folder are loaded automatically. It didn't work
- Load the script using loadScripts("script1.js") as instructed in the tutorial found here LINK. It didn't work.
The file just had a simple alert("test") line in the code.
In fact, the only thing that worked was when I loaded the script using this technique
var js = document.createElement('script');
js.type = 'text/javascript';
js.src = 'https://cdn.jsdelivr.net/npm/canvas/filelocation';
document.body.appendChild(js);