kamiyasi
Member
Hi. I'm using this surface here:
to make a transparent cutout of suf1, allowing the background behind it to show through. The two surfaces are combined here...
Here's the issue: in parts of the surface, surfcomp, that don't have an alpha of either 0 or 1, the background of the game shows through, meaning that the surface itself is not opaque.
Here you can see, the edges of the blood trail that look purplish are transparent allowing the blue background to show through. How can I make the surface opaque to fix this problem? Thank you.
Code:
////////surf2
surface_set_target(surf2);
draw_set_blend_mode_ext(bm_zero,bm_inv_src_color); ///cutout
draw_surface(surf1,0,0);
draw_set_blend_mode(bm_normal);
surface_reset_target();
Code:
//////surfcomp
surface_set_target(surfcomp);
draw_clear_alpha(c_red, 1);
draw_background_tiled(bck_blood,0,0);
draw_surface(surf2,0,0);
surface_reset_target();
Here you can see, the edges of the blood trail that look purplish are transparent allowing the blue background to show through. How can I make the surface opaque to fix this problem? Thank you.