Often in games there is the need to save and load the game state. In Game Maker, there are some specific functions (game_save, game_load), which save and load the room state, the objects and all the variables. However, there are some things that aren’t saved (for example, the state of an eventual music track). Some information instead is saved and loaded, while it shouldn’t (for example, the keyboard configuration).
How to solve these problems? Here is a possible solution: just create a control object LoadController before saving the game, and destroy it right after. In Begin Step, you can place the code that solves these issues, and after it destroys the object. This code will be executed right after the loading.