I built a drawing game, and want the user to be able to save their image at the end. To do this, I used the simple code
This works perfectly fine when the game is in the smaller window. However, when I switch to fullscreen, (using window_set_fullscreen(true) the screenshots no longer work. The image file just says "It looks like the file was moved or renamed". Anyone know why this might be happening? I am on windows 10 btw
GML:
if mouse_check_button_pressed(mb_any){
surface_save_part(controller.initialSurf,"screenShot.png",0,0,camera_get_view_width(controller.camera),camera_get_view_height(controller.camera));
}