Argument Description
filename The buffer ID of the buffer to load the map data from.

Returns: DS Map


This function will load a secure saved DS map from a buffer. You must previously have loaded the buffer into memory (using buffer_load) and then passing that into this function will return a DS map populated with the contents of the buffer. Note that the buffer must have been created using the function ds_map_secure_save_buffer for this to work correctly.


var buff = buffer_load("save.dat");
map = ds_map_secure_load_buffer(buff);

The above code will load a securely saved ds_map from a buffer and store its index value in a variable for future use.

Back: DS Maps
Next: ds_map_add_list
© Copyright YoYo Games Ltd. 2018 All Rights Reserved