SOLVED screen_save and surface_save not downloading a file

marbar

Member
Hello all!

I have been working on a painting game, and am trying to implement a screenshot function. Unfortunately, the screens are not saving for some reason. Here is the code I am trying:
GML:
    if mouse_check_button_pressed(mb_any){
        surface_save(controller.initialSurf, "fractalCapture.png");
    }
I also tried:
Code:
    if mouse_check_button_pressed(mb_any){
        screen_save("screenShot.png");
    }
but neither worked. I also tried running it from a windows export, and on HTML5. Still nothing. Does anyone have any idea what I am doing wrong?
 

DaveInDev

Member
did you try the debugger to see if the code is really calling this screen_save("screenShot.png") ?
put a breakpoint of this line and run with F6.
 
Top