P
PWL
Guest
I am using a surface to draw this cat, so that I can draw the pattern inside him as you can see in the picture. If you watch closely, there is a white outline around the pattern and the character itself (not too visible in this screenshot, unfortunately). I assume that is because of the alpha in the sprite (see screenshot 2).
Is there some settings that I can change to make the white outline go away?
Thank you!
Pattern sprite zoomed in:
Code for drawing the body with the surface:
EDIT: Zoomed screenshot.
Is there some settings that I can change to make the white outline go away?
Thank you!
Pattern sprite zoomed in:
Code for drawing the body with the surface:
Code:
surface_set_target(bodySurface);
draw_set_blend_mode(bm_normal);
draw_clear_alpha(c_white, 0);
draw_sprite_ext(sprite_index, image_index, abs(sprite_xoffset), abs(sprite_yoffset), 1, 1, 0, image_blend, 1);
draw_set_blend_mode_ext(bm_dest_colour, bm_inv_src_alpha);
draw_sprite_ext(spr_cat_body_pattern, patternId, abs(sprite_xoffset), abs(sprite_yoffset), 1, 1, 0, image_blend, 1);
draw_set_blend_mode(bm_normal);
draw_sprite_ext(spr_cat_head, 0, abs(sprite_xoffset), abs(sprite_yoffset), 1, 1, 0, image_blend, 1);
surface_reset_target();
draw_surface_ext(bodySurface, x-sprite_xoffset, y-sprite_yoffset - jumpOffset, image_xscale, image_yscale, image_angle, c_white, image_alpha);