Hi there,
getting the error "ReferenceError: window is not defined", but i don't have any clue where to put code as follows:
window["game"].pause = function() { self.Trigger(C3.Plugins.MyPluginName.Cnds.OnGamePause); };
I tried different places, but window has never been defined. Has to be a place where I have access to "inst" as well.
Thanks a lot :)
Develop games in your browser. Powerful, performant & highly capable.
It might be worker mode, disable that in 'advanced project settings'. 'window' is not available to the thread running in a worker.
See: construct.net/en/make-games/manuals/construct-3/scripting/using-scripting/javascript-construct
Or just use self, which refers to the global object in both the DOM and in a worker.
self