No i didn’t say remove the if, just look at the code I provided you forgot the {} around “game.focus = true” :)
you need to use it like this (again):
if (component.status == Component.Ready)
{
var game = component.createObject(main_Window, {});
game.focus = true;
}
same with your other object “bg_game” off course.
↧