R
r3vdev
Guest
Hello GM Community,
So i created the following particle effect following some youtube guides:
//// Light Beam Noise System
lbeamNoiseSystem = part_system_create();
//// Light Beam Particles
lbeamNoise = part_type_create();
part_type_shape(lbeamNoise, pt_shape_line);
part_type_size(lbeamNoise, 0.1, 0.2, 0, 0);
part_type_color2(lbeamNoise, c_white, c_white);
part_type_alpha2(lbeamNoise, 0.5, 0.01);
part_type_gravity(lbeamNoise, 0.1, 180);
part_type_speed(lbeamNoise, 0.5, 0.5, 0, 0);
part_type_direction(lbeamNoise, 180, 180, 0, 0);
part_type_orientation(lbeamNoise, 180, 180, 0, 0, 0);
part_type_life(lbeamNoise, 20, 180);
//// Light Beam Noise Emitter
lbeamNoiseEmitter = part_emitter_create(lbeamNoiseSystem);
part_emitter_region(lbeamNoiseSystem, lbeamNoiseEmitter, 0, room_width-100, 0, room_height, ps_shape_rectangle, ps_distr_linear);
part_emitter_stream(lbeamNoiseSystem, lbeamNoiseEmitter, lbeamNoise, 5);
What I would like to do is create a dynamic speed gradient along the Y axis. So particles flow faster at the center Y point of the view, and then gradually slow towards the top y and bottom y value of the view.
Does anyone have any ideas on how to approach this?
Thanks!
So i created the following particle effect following some youtube guides:
//// Light Beam Noise System
lbeamNoiseSystem = part_system_create();
//// Light Beam Particles
lbeamNoise = part_type_create();
part_type_shape(lbeamNoise, pt_shape_line);
part_type_size(lbeamNoise, 0.1, 0.2, 0, 0);
part_type_color2(lbeamNoise, c_white, c_white);
part_type_alpha2(lbeamNoise, 0.5, 0.01);
part_type_gravity(lbeamNoise, 0.1, 180);
part_type_speed(lbeamNoise, 0.5, 0.5, 0, 0);
part_type_direction(lbeamNoise, 180, 180, 0, 0);
part_type_orientation(lbeamNoise, 180, 180, 0, 0, 0);
part_type_life(lbeamNoise, 20, 180);
//// Light Beam Noise Emitter
lbeamNoiseEmitter = part_emitter_create(lbeamNoiseSystem);
part_emitter_region(lbeamNoiseSystem, lbeamNoiseEmitter, 0, room_width-100, 0, room_height, ps_shape_rectangle, ps_distr_linear);
part_emitter_stream(lbeamNoiseSystem, lbeamNoiseEmitter, lbeamNoise, 5);
What I would like to do is create a dynamic speed gradient along the Y axis. So particles flow faster at the center Y point of the view, and then gradually slow towards the top y and bottom y value of the view.
Does anyone have any ideas on how to approach this?
Thanks!