ds_map_destroy

Destroys a given map permanently, removing it from memory.

Syntax:

GML Code Example

ds_map_destroy(id);


Argument Description
id The id of the map to destroy.


Returns: N/A.


Description

Ds_maps take up space in memory, which is allocated to them when they are created. This means that you also need to free this memory when the ds_map is not needed to prevent errors, memory leaks and loss of performance when running your game. This function does just that.


Example:

GML Code Example

ds_map_destroy(inventory);

The above code will destroy the ds_map with the id indexed in the variable "inventory".





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