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
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.
No, all is well. My fault. But what about this?
Develop games in your browser. Powerful, performant & highly capable.
In the second example, after a 'Wait' the function has ended so the local variable no longer exists. So it has no value.