• 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!

Windows surface_save not working on program_directory

klys

Member
Hi to all the GMS Community!

Im trying to use surface_save to save sprite that will be loaded later on the program_directory.


There is any way to bypass the sandboxed enviroment of game maker studio to be able to use surface_save and save and load whatever on the program directory whitout using extension?
 

TsukaYuriko

☄️
Forum Staff
Moderator
Moving to Programming.

Bypassing the sandbox without using extensions is only possible by using the get_*_filename functions. These grant you full access (as far as your OS permits) to one file for the duration of the game's run time per call.

Why do want to save files outside of the standard designated save area, though?
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
Why do you want to save to the program directory? If what you are doing is simply saving and loading within the same game, then there is no need... if we knew more about why you think this is required and what you are doing then we can give better replies. :)
 
Top