I've found a similair thread. His code is as follows:
function level_change();
{
if (event_type == event_impact)
{
my=null;
freeze_mode = 1;
level_load(level2);
wait(2);
freeze_mode = 0;
}
}
The only diffrence I see is he has no wait above his event_type line and he doesn't have the game name in "". Does this have an affect on the function?