Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
Hi!
I am wondering how can I in the JS script reference a global variable that is declared in spread sheets? So basically I have created global variable in spread sheet now I want to access it in scripts. How do I do it?
Is this even possible?
Thank you!
Martin Starešinčić
Develop games in your browser. Powerful, performant & highly capable.
runtime.globalVars.myglobalvar - for global variables
localVars.myvariable - for local
You should check out the Scripting sub-forum, there are tons of examples.
runtime.globalVars.myglobalvar - for global variables localVars.myvariable - for local You should check out the Scripting sub-forum, there are tons of examples.
Thank you! I will check it out.