Tangramd
Member
Hello everyone, first post here !
I usually managed to find solutions on this forum but this time I'm really stuck and I need your help !
I'm having a hard time dealing with alpha and surfaces, and I don't get it. For some reason my sprites behave oddly.
LEFT : 2 times the same sprite overlaping, drawn the usual way (draw_sprite_ext in an object), that's what I'm trying to get using a surface.
RIGHT : the same sprites drawn exactly the same way but on a surface, which is then drawn on the application surface. My surface is cleared with black and 0 alpha every frame
As you can see the transparency is clearly messed up. (halo is smaller, but also transparecy affecting the sprite underneath - you can see the the grid under it)
I tried many things with blend modes but nothing worked properly.
Any Idea?
(here's the original sprite)
Thank you very much,
J
I usually managed to find solutions on this forum but this time I'm really stuck and I need your help !
I'm having a hard time dealing with alpha and surfaces, and I don't get it. For some reason my sprites behave oddly.
LEFT : 2 times the same sprite overlaping, drawn the usual way (draw_sprite_ext in an object), that's what I'm trying to get using a surface.
GML:
draw_sprite_ext(_sprite,1,_i,_j,_xscale,_yscale,_angle,c_white,1)
GML:
// draw surface parts
draw_surface(parts,560,0)
//reset surface
surface_set_target(parts)
draw_clear_alpha(c_black,0);
surface_reset_target();
I tried many things with blend modes but nothing worked properly.
Any Idea?
(here's the original sprite)
Thank you very much,
J
Last edited: