Hi, so I’m trying to disable something after 1000ms. When trying to do so, it says ‘Cannot set property ‘enabled’ of null’. Here is the code:
var screen4 = app.root.findByName('Frame').findByName('Screen4');
app.on('game:start', function () {
setTimeout(function () {
screen4.enabled = false;
}, 1000);
}, this);
app.fire('game:start');
I have no idea why this is happening, but please, any help to do this is appreciated