P
PepticPaladin
Guest
I want to make a ds_list that is n values long. Can I do this in GML without using a for loop?
I'm not sure if there's a function for it (I looked in the manual and didn't see one but I might have missed it) however, in GMS 2 at least a simple test shows that they work like arrays - automatically resized to the largest point without erasing lowing numbers - put a break point on the first line of this code and step through it in the debugger:I want to make a ds_list that is n values long. Can I do this in GML without using a for loop?
test = ds_list_create();
test[| 10] = "Hello";
test[| 5] = "World";
test[| 15] = "!";
ds_list_destroy(test);