Hi!
How can i built a pause-function in my game?
I just tried this but it doesn`t work
Can anybody help me, please!
Here is my code:
........
// Pause
function pause(){
wait(1);
freeze_mode = 2;
mouse_mode = 1;
pausenPanel.flags = VISIBLE | OVERLAY;
}
// Play
function weiter(){
wait(1);
pausenPanel.flags &= ~VISIBLE;
mouse_mode = 0;
freeze_mode = 0;
}
......
on_p = pause(); // Short-Key to get pause
......