eams1986
Member
How can I recreate a new list when restarting the game? Note: the object is persistent
I have to restart the game to randomize the objects in this case the Sprites "l_level_"
it is a vk_up key I put this to see if to the random of objects
randomize ();
ds_list_shuffle (My_level);
Thanks
I have to restart the game to randomize the objects in this case the Sprites "l_level_"
GML:
My_level = ds_list_create();
//Game
var game_total = 61;
for(var a = 0; a < game_total; a++)
ds_list_add(My_level,a);
randomize();
ds_list_shuffle(My_level);
//ds_list_destroy(My_level);
it is a vk_up key I put this to see if to the random of objects
randomize ();
ds_list_shuffle (My_level);
Thanks