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
What's the best method for getting the return value from a .js script placed on the index.html?
Develop games in your browser. Powerful, performant & highly capable.
c2_callFunction("name", ["param1", "param2"]);[/code:2cedqunh]
Guess there's no way to way to get around having to learn some code.
In index.html just place your code to be accessible globally
In C2 just assign it to a variable or just get the value directly
I didn't know you could get a variable like that.
Then again I'm not even sure Im using the right variable.
Thanks for the info guys.