Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- paused = !paused;
- if (paused) {
- var pausescreen1;
- pausescreen1 = surface_create(view_wview,view_hview); //create temporary surface with the size of the view
- surface_set_target(pausescreen1); //set the target to the surface, this will allow us to draw on it
- draw_clear_alpha(c_black,0); //clear the surface
- draw_surface(application_surface,0,0) //draw app_surface to surface target
- surface_reset_target(); //reset the surface target
- surface_save(pausescreen1,working_directory + "\temp.png"); //save the surface
- surface_free(pausescreen1); //free temporary surface to free memory
- background_replace(bac_pause, working_directory + "\temp.png", false, false);
- alarm[0] = 2;
- } else {
- //tile_layer_show(1000000);
- tile_layer_show(101);
- tile_layer_show(100);
- tile_layer_show(99);
- instance_activate_all();
- file_delete(working_directory + "\temp.png");
- background_visible[0] = true;
- if (!surface_exists(light))
- {
- light = surface_create(view_wview, view_hview);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment