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
Problem Description
When you minimize the C2-ejecta application and go back to it, you get a javascript error about a null context
This change fixed it:
in the Audio plugin:
+++ ...\exporters\html5\plugins\audio\runtime.js @ -2726,7 +2726,7 @ return; // upon resume: first resume the whole context [ul] [li]if (!s && context["resume"])[/li] [/ul]+ if (!s && context && context["resume"]) context["resume"](); var i, len; @ -2734,7 +2734,7 @ audioInstances[i].setSuspended(s); // after suspend: also suspend the whole context [ul] [li]if (s && context["suspend"])[/li] [/ul]+ if (s && context && context["suspend"]) context["suspend"](); };[/code:lm22brj0] For some unknown reasons, context might probably be null during a few frames and then the audio kicks in back. [b]Operating System and Service Pack[/b] iOS [b]Construct 2 Version ID[/b] r186.2
Develop games in your browser. Powerful, performant & highly capable.
This change was already made in r187!
Ah! my bad (: I didn't update 'cause in 187 there's a potential breaking change and well... I don't have time to deal with it at work =), anyway that's neat, thanks.