• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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