L
lewisnddabais
Guest
Is there a way to make emitted particles independent from emitter movement.
I have an object moving horizontally with an emitter, my problem is as it emits the particle are curved as they are effected by the movement, my aim is to get them to go straight down (270*) without any effect from the object.
I am new to GML and any help would be appreciated.
I am using GM 2.1.0.212
The screenshot below shows my problem
Under Create for BALL_OBJ I have:
Under Step for BALL_OBJ I have:
I have an object moving horizontally with an emitter, my problem is as it emits the particle are curved as they are effected by the movement, my aim is to get them to go straight down (270*) without any effect from the object.
I am new to GML and any help would be appreciated.
I am using GM 2.1.0.212
The screenshot below shows my problem
Under Create for BALL_OBJ I have:
Code:
global.BEAM_PTCL = part_system_create();
global.p1 = part_type_create();
part_type_shape(global.p1, pt_shape_disk);
part_type_size(global.p1, 1, 1, 0, 0);
part_type_scale(global.p1, 1, 1);
part_type_colour1(global.p1, c_teal);
part_type_speed(global.p1, 10, 10, 0, 0);
part_type_direction(global.p1, 270, 270, 0, 0);
part_type_gravity(global.p1, 1, 270);
part_type_orientation(global.p1, 270, 270, 0, 0, 0);
part_type_blend(global.p1, 1);
part_type_life(global.p1, 15, 15);
global.p1_emitter = part_emitter_create(global.BEAM_PTCL);
part_emitter_region(global.BEAM_PTCL,global.p1_emitter,BALL_OBJ.x,BALL_OBJ.x,BALL_OBJ.y,BALL_OBJ.y,ps_shape_line,ps_distr_linear)
Code:
part_emitter_burst(global.BEAM_PTCL,global.p1_emitter,global.p1,500)
part_emitter_region(global.BEAM_PTCL,global.p1_emitter,BALL_OBJ.x,BALL_OBJ.x,BALL_OBJ.y,BALL_OBJ.y,ps_shape_line,ps_distr_linear);
part_type_size(global.p1,1,1,0,0);
part_type_direction(global.p1,270,270,0,0)
part_type_orientation(global.p1,270,270,0,0,0)
Last edited by a moderator: