I wrote the scirpt as told and it runs with no syntak errors. but the game doesnt pause nor does my menu panel show when i hit the space bar. this is what i have in my scirpt:
var game_paused = 0;
function press_paused ()
{
if (key_space) {game_paused = 0;}
if (game_paused == 0)//game not paused
{
set(menu_pan, SHOW);//show menu panel
game_paused = 1;
}
else //game paused
{
reset(menu_pan, SHOW);//hide menu panel
game_paused = 0;
}
wait (1);
}
What am I doing Wrong?
Thanks