game_project_name

Returns a safe version of the game display name.

Syntax:

GML Code Example

game_project_name


Returns: String


Description

This read only variable returns the display name of your game for the target platform in a "save-friendly" format for the target platform. If the display name contains any characters that are not permitted for a file name, they will be replaced automatically with "_". The display name can be set in the Global Game Settings. Note that since there are no restrictions on file names for HTML5, this string will probably be the same as that returned by game_display_name.


Example:

GML Code Example

var file = game_project_name + ".ini";
 ini_open(file);
 ini_write_real("Scores", "Highscore", score);
 ini_close();
 

The above code gets the project name and uses this to open (or create) an ini file which is then written to.


Next: game_end



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