Home > Community Toolbox Reference > DS List utilities
Creates a new DS list with items from the given array.
Argument | Type | Usage | Description |
---|---|---|---|
array | Array |
Required | The array to get the items from. |
Id.DsList
The following code shows converting an in-game array to a DS list for legacy save system.
var _completed_levels_list = ds_list_create_from_array(global.completed_levels);
ds_map_add_list(_save_data, "completed_levels", _completed_levels_list);
var _save_json = json_encode(_save_data);
- 24.6.0 - Created a function to create a DS list from an array.