jonjons
Member
hello
i have an object that makes particles
i wanted to place this object in diferent locations of the room.
but iam not sure if all the particles are going to the frist object placed in the room, or if the particles nullify each other.
Is there a way to use the same obj_particle in deferent locations of the room, without having to create a new object with a new particle sys or emitter ?
i have an object that makes particles
//create
//step
Code:
sys_worldPart01 = part_system_create(); //-cleanUP-destroy
part_system_layer(sys_worldPart01, layer);
part_system_depth(sys_worldPart01, depth);
part_worldPart01 = part_type_create(); //-cleanUP-destroy
part_type_shape(part_worldPart01, pt_shape_pixel);
part_type_size(part_worldPart01, 1, 2, 0, 0 );
part_type_scale(part_worldPart01, 1, 1);
part_type_color_mix(part_worldPart01, c_white, c_yellow);
part_type_alpha3(part_worldPart01, 0, 1, 0);
part_type_speed(part_worldPart01, 0, 0.2, 0, 0);
part_type_direction(part_worldPart01, 0, 360, 0, 1);
part_type_blend(part_worldPart01, 1);
part_type_life(part_worldPart01, 30, 50);
emit_worldPart01 = part_emitter_create(sys_worldPart01);
Code:
part_emitter_region(sys_worldPart01, emit_worldPart01, x, x+sprite_width, y, y+sprite_height, ps_shape_rectangle, ps_distr_linear);
part_emitter_burst(emit_worldPart01, emit_worldPart01, part_worldPart01, 2);
i wanted to place this object in diferent locations of the room.
but iam not sure if all the particles are going to the frist object placed in the room, or if the particles nullify each other.
Is there a way to use the same obj_particle in deferent locations of the room, without having to create a new object with a new particle sys or emitter ?