Custom Zeta Blur fix

adds missing variable check that enables the use of a custom zeta_blur.png
pull/9/head
Jesright73 4 years ago
parent 2e282a2964
commit f0ca397c13

@ -1,6 +1,6 @@
var trail;
trail = instance_create(x, y, oFXTrail)
trail.sprite_index = sMZetaBlur
trail.sprite_index = ZetaBlurSprite
trail.image_alpha = 1
trail.white = 0
trail.fadespeed = 0.15

@ -95,3 +95,7 @@ myposx = floor((x / 320))
myposy = floor(((y - 8) / 240))
mapposx = (myposx + global.mapoffsetx)
mapposy = (myposy + global.mapoffsety)
if (oControl.ZetaBlur != -1) && (oControl.mod_fusion == 1)
ZetaBlurSprite = oControl.ZetaBlur
else
ZetaBlurSprite = sMZetaBlur

@ -18,6 +18,6 @@ if surface_exists(surf)
draw_sprite_ext(fleg_spr, fleg_frame, body_x, surf_y, facing, 1, 0, -1, 1)
}
else
draw_sprite_ext(sMZetaBlur, -1, body_x, body_y, facing, 1, 0, -1, 1)
draw_sprite_ext(ZetaBlurSprite, -1, body_x, body_y, facing, 1, 0, -1, 1)
surface_reset_target()
}

Loading…
Cancel
Save