I’m working on a game and have run into a problem with the order in which certain scripts and logic bricks are executed. When you start the game from the main menu, the first thing I want done, before anything else, is to set certain objects’ properties that may have been saved last time someone played. For example, all the doors have ‘open’ properties, there’s a score property etc. However, what’s happening is that sometimes the objects in the scene start to update before the initialization script runs, leading to confusion. Some doors end up closed when they’re supposed to be open and whatnot. The weirdest part is that it almost seems random the order in which objects choose to start updating. Sometimes it works out alright, sometimes it doesn’t. Sometimes, half the doors end up updating before the initialization script runs and then the other half update properly afterwards.
Is there any way to make sure one script executes before everything else in the scene?