spr_chunk 0 -1 0 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 /// GENERATE CHUNK var total_size = CHUNK_SIZE*TILE_SIZE; instance_list = array_create(total_size); cur_inst = 0; loaded = true; // GENERATION for(var xx = 0; xx < CHUNK_SIZE*TILE_SIZE; xx+= TILE_SIZE) { for(var yy = 0; yy < CHUNK_SIZE*TILE_SIZE; yy+= TILE_SIZE) { if(random_range(0,100) > 50) { instance_list[cur_inst] = instance_create(x+xx,y+yy, obj_asteriod); cur_inst ++; } } } 1 603 7 0 0 -1 2 self 0 0 1 var chunk_total_size = CHUNK_SIZE * TILE_SIZE if(distance_to_object(obj_player) > 1) { event_user(0); } 1 603 7 0 0 -1 2 self 0 0 1 for(var i = 0; i < cur_inst; i++) { instance_activate_object(instance_list[i]); } loaded = true; 1 603 7 0 0 -1 2 self 0 0 1 for(var i = 0; i < cur_inst; i++) { instance_deactivate_object(instance_list[i]); } loaded = false; instance_deactivate_object(id); 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0