Código: Selecionar todos
var id_iten1 = (obj_Ginger);
var id_iten2 = (obj_Mushroom);
var id_iten3 = (obj_Feather);
var id_pocao = (obj_pocao_A);
ds_list_add(my_list,id_iten1);
ds_list_add(my_list,id_iten2);
ds_list_add(my_list,id_iten3);
ds_list_find_index(my_list, 0);
ds_list_find_index(my_list, 1);
var teste = ds_list_find_value(my_list, 1);
if ( teste != -1)
{
var itemNovo = ds_list_find_index(my_list, id_pocao);
}
//ds_list_find_value(my_list,1 and 2);
instance_create_layer(x,y-10, "In_game", teste);
instance_destroy(other);