here i think this would work
starter show_splash()
{
while(1)
{
while (key_space == 0) {wait (1);} // wait until the "space" key is pressed
while (key_space == 1) {wait (1);} // wait until the "space" key is released
freeze_mode = 1; // stop all the entities in the level
splash_pan.visible = on; // show the splash screen
while (key_space == 0) {wait (1);} // wait until the "space" key is pressed
while (key_space == 1) {wait (1);} // wait until the "space" key is released
splash_pan.visible = off;
freeze_mode = 0; // resume the gameplay
wait(1);
}
}