Joh
Member
Hello,
I would like to clip a portion of my screen, that is: cut off any sprite/text going above the header or below the footer (scrolling involved) in my menu.
Simple enough solution is using surfaces. draw the whole menu on a surface, remove the header & footer with bm_subtract and draw the surface.
It works well enough except the alphas are off. With some research I learned that apparently the clear of 0 alpha impacts the final alpha.
https://www.yoyogames.com/blog/57/explaining-blend-modes-part-2
see last part
I can't think of how to fix it. I tried different blend_modes but I cant wrap my head around which, if any would deliver the desired effect.
Essentially I just want the sprites to Ignore the clear Black alpha 0 background of surface, But still behave normally with respect to all other elements being drawn on it (with varying alphas)
Thank you
I would like to clip a portion of my screen, that is: cut off any sprite/text going above the header or below the footer (scrolling involved) in my menu.
Simple enough solution is using surfaces. draw the whole menu on a surface, remove the header & footer with bm_subtract and draw the surface.
It works well enough except the alphas are off. With some research I learned that apparently the clear of 0 alpha impacts the final alpha.
https://www.yoyogames.com/blog/57/explaining-blend-modes-part-2
see last part
I can't think of how to fix it. I tried different blend_modes but I cant wrap my head around which, if any would deliver the desired effect.
Essentially I just want the sprites to Ignore the clear Black alpha 0 background of surface, But still behave normally with respect to all other elements being drawn on it (with varying alphas)
Thank you