Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
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
Should this code work? I get a JS error
What's the JS error? Usually that should never happen so should always be filed as a bug.
Develop games in your browser. Powerful, performant & highly capable.
No, all is well. My fault. But what about this?
In the second example, after a 'Wait' the function has ended so the local variable no longer exists. So it has no value.