Michael Hart
Member
I have a map already set up and i am creating instances and setting the "name"
How can i set a numerical value for "number" using i in the loop as the value?
var size = ds_map_size(global.catlist);
var key = ds_map_find_first(global.catlist);
for (var i = 0; i < size; i++; ) {
with(instance_create_depth(x+24,y+(i*250),100,ob_Cat)) {
category = key;
}
key = ds_map_find_next(global.catlist,key);
}
How can i set a numerical value for "number" using i in the loop as the value?
var size = ds_map_size(global.catlist);
var key = ds_map_find_first(global.catlist);
for (var i = 0; i < size; i++; ) {
with(instance_create_depth(x+24,y+(i*250),100,ob_Cat)) {
category = key;
}
key = ds_map_find_next(global.catlist,key);
}