And why you always make new image when you can use same image number always.
if keystate(88)=1
screenshot = 0
repeat
INC screenshot
until FILE EXIST("ScreenShots/Screenshot Number - " + STR$(screenshot) + ".jpg") <> 1
if img=0 then img = FIND FREE IMAGE()
GET IMAGE img, 0, 0, SCREEN WIDTH(), SCREEN HEIGHT(), 1
SAVE IMAGE "ScreenShots/Screenshot Number - " + STR$(screenshot) + ".jpg", img
DELETE IMAGE img
endif
and non matrix1util version
if keystate(88)=1
screenshot = 0
repeat
INC screenshot
until FILE EXIST("ScreenShots/Screenshot Number - " + STR$(screenshot) + ".jpg") <> 1
if img=0 then img = freeimage()
GET IMAGE img, 0, 0, SCREEN WIDTH(), SCREEN HEIGHT(), 1
SAVE IMAGE "ScreenShots/Screenshot Number - " + STR$(screenshot) + ".jpg", img
DELETE IMAGE img
endif
function FreeImage()
repeat
inc o
until image exist(o)=0
endfunction o
Your signature has been erased by a mod because it was too big