Code:
{
io_clear();
draw_sprite(spr_gamepaused,0,150,170);
screen_refresh();
while (!keyboard_check_pressed(vk_anykey) ) sleep(100);
}
Ok, the second line in this code allows you to draw a sprite paused.
The rest of this code creates a loop. Keeping the game paused. And then the game will un pause when you hit any button. Simple right?
No comments:
Post a Comment