Hello - I am working with someone who has made a game using Construct2. We want to publish it on a webpage - but the URL of the page is not the same as the URL to the JavaScript files that Construct2 imports. We are putting it on a WordPress site, so the page URL is /games/foo, but the URL of the scripts is /wp-content/plugins/foo-game/scripts
Specifically, the game is trying to load "data.js", but can't find it.
Is there a configuration setting that we can use to pass the path as a JavaScript variable to Construct2 for loading the file?
On a related note, can we also pass the "endpoint" URL to the game, so that we can set up a variable that our AJAX calls can use to save data.
Jamie