Skip to content

Commit 1401cb8

Browse files
committed
Fixed an error with the shape of the ellipse
1 parent f6f6b2b commit 1401cb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/AdvancedParticleSystem/AdvancedParticleSystem.gml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ADVANCED PARTICLE SYSTEM by Limekys
2-
// VERSION: 2022.07.28
2+
// VERSION: 2022.07.29
33

44
#macro _APS_DT global.particle_system_deltatime //This is a delta time variable, you can replace it with your own if you use your delta time system in the game
55

@@ -587,6 +587,7 @@ function advanced_part_emitter_burst(ps, part_emit, part_type, number) {
587587
var A = (emitter.x_right - emitter.x_left) / 2;
588588
var B = (emitter.y_down - emitter.y_top) / 2;
589589
var X = random_range(-A, A);
590+
if (A == 0) {A = 1;}
590591
var Y = sqrt(B*B * (1 - X*X / (A*A)));
591592
x = X + emitter.x_left + A;
592593
y = random_range(-Y, Y) + emitter.y_top + B;

0 commit comments

Comments
 (0)