buffer_async_group_end

Ends the definition of a buffer save group and initiates the saving.

Syntax:

GML Code Example

buffer_async_group_end();


Returns: Real


Description

This function finishes the definition of a buffer save group. You must have previously called the function buffer_async_group_begin() to initiate the group, then call the function buffer_save_async() for each file that you wish to save out. Finally you call this function, which will start the saving of the files.


Example:

GML Code Example

buffer_async_group_begin("SaveGame");
 save1 = buffer_save_async(buff1, "Player_Save1.sav", 0, 16384);
 save2 = buffer_save_async(buff2, "Player_Save2.sav", 0, 16384);
 save3 = buffer_save_async(buff3, "Player_Save3.sav", 0, 16384);
 save4 = buffer_save_async(buff4, "Player_Save4.sav", 0, 16384);
 buffer_async_group_end();
 

The above code starts a buffer group then sets it to save out 4 files asynchronously. The group definition is then ended (at which point saving will begin).


Back: Buffers



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