D
dirkinz
Guest
I have a game in which the player can essentially draw a line by dragging an object around. The line (made with draw_line_width()) is somewhat transparent and that's where the issue comes in. If the player draws back over the line it adds the alpha of the old line and the new line together. I want the line to display at a constant transparency no matter how many times it gets layered over itself. I'm just starting to look at blend modes and surfaces and I think they are the answer but I'm a bit overwhelmed by them. I'm unsure of the best way to accomplish this.
solved:
solved:
iirc it's just:
or draw_surface_ext() if you prefer.Code:draw_set_alpha(/* alpha */); draw_surface(/* your surface stuff */); draw_set_alpha(1);
Last edited by a moderator: