ashdasdf.
Well I noticed some problems and I barely know anything about surfaces.
Well, if you haven't made it so that you can't put the norfair secret path back, here's my proposed changes:
//transform the sprite goes before this
overlaySurface = surface_create(map_width(),map_height());
surface_set_target(overlaySurface);
surface_reset_target();if surface_exists(overlaySurface){
surface_set_target(overlaySurface);
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, c_white, image_alpha)
draw_set_blend_mode(bm_subtract)
with Character
{
if team == global.myself.team
{
draw_sprite(VisionMask, 0, x, y)
}
}
draw_set_blend_mode(bm_normal)
surface_reset_target()
}if surface_exists(overlaySurface){
draw_surface(overlaySurface, 0, 0)
}If the removal of the reset doesn't fix it, the "if surface exists" should.