temp_directory

Temporary directory created for the game.

Syntax:

GML Code Example

temp_directory


Returns: String.


Description

This can be used to return the temporary directory created for your game each time it is run (the root does not contain the final "\"). This directory will hold files and can be accessed while the game is running, but it will be removed (along with all files that it contains) when the game is closed.


WARNING! This function may not work as you expect due to GameMaker: Studio being sandboxed! Please see the section on File System Limits for more information.


Example:

GML Code Example

ini_open(temp_directory + "\temp_ini.ini");

This will open an ini file in the temporary directory of the game (creating it if it does not already exist).





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here