pause
Posted: Wed Jun 23, 2010 2:05 pm
simple way to pause a game without pausing a pause menu or something
ok first off make a variable called pause> ok make a pause menu or something> you only want you actor to be paused not the pause menu so go to ur actor(s) go to draw actor>script editor and put this code
if
(pause==0);
EventEnable("Event Actor", EVENTALL);
if
(pause==1);
EventDisable("Event Actor", EVENTALL);
ok now only that actor will be paused(copy and paste that code to every actor u want that to apply to)
now go to ur pause menu button and go to mouse button down event> left or right click (doesnt matter) now go to script editor
and type
pause=1;
ok now for this u need a resume game button on ur pause menu and go to mouse button down event> left or right button> script editor type this in
pause=0;
ok first off make a variable called pause> ok make a pause menu or something> you only want you actor to be paused not the pause menu so go to ur actor(s) go to draw actor>script editor and put this code
if
(pause==0);
EventEnable("Event Actor", EVENTALL);
if
(pause==1);
EventDisable("Event Actor", EVENTALL);
ok now only that actor will be paused(copy and paste that code to every actor u want that to apply to)
now go to ur pause menu button and go to mouse button down event> left or right click (doesnt matter) now go to script editor
and type
pause=1;
ok now for this u need a resume game button on ur pause menu and go to mouse button down event> left or right button> script editor type this in
pause=0;