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
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
What's the best method for getting the return value from a .js script placed on the index.html?
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
Develop games in your browser. Powerful, performant & highly capable.
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.