Pixel-Composer/objects/fx_particle_spawner/Draw_64.gml
2024-03-27 17:51:14 +07:00

15 lines
365 B
Plaintext

/// @description Insert description here
draw_set_color(COLORS._main_accent);
var r = max(1, life / 20 * size);
random_set_seed(seed);
for( var i = 0, n = array_length(parts); i < n; i++ ) {
draw_circle(parts[i][0], parts[i][1], r, false);
parts[i][0] += speeds[i][0];
parts[i][1] += speeds[i][1];
speeds[i][1] += 1;
}
if(--life <= 0) instance_destroy();