saving screen shot

The following code should make objects invisible and only take a screen shot of what is left. It does make them invisible and takes a screenshot, but then will leave the visible objects on the output.

I have tried fudging this with a delay but this is not good. As the visibility code runs first and does not have desired effect I have no idea how to fix this.

obj_slide.visible = false;
obj_buttons.visible = false;
obj_quit.visible = false;

var file;
file = get_save_filename("screenshot|*.png", "Screenshot");
if file != ""
{
screen_save(file);
}
 

MusNik

Member
Objects become invisible on the next step, so you should make a screenshot one step after the "visible" code.

Also, you can try surface saving instead of screen_save, thereby manually manage what objects is to draw.
 
Last edited:
Objects become invisible on the next step, so should make a screenshot one step after the "visible" code.

Also, you can try surface saving instead of screen_save, thereby manually manage what objects is to draw.
That sounds about right actually a better way to do it. How do I assign the objects I don't want to see to a different surface.
 
Top