Hi!! :3 I'm working on a prototype for a flashlight mechanic by drawing a surface and drawing a sprite that subtracts from that surface, but when rotating it it looks very blocky. Any way I could improve the visuals of it? I've attached the sprite and a video showing it off :3 Here's the draw event code as well! Create code is just surface = -1;
if (!surface_exists(surface)) {
surface = surface_create(room_width, room_height);
//view_surface_id[0] = surface;
}
surface_set_target(surface);
draw_clear(c_black);
//
gpu_set_blendmode(bm_subtract);
var _i = point_direction(obj_player.x, obj_player.y, mouse_x, mouse_y);
draw_sprite_ext(spr_flashlight_light, 0, obj_player.x, obj_player.y - 4, 1, 1, _i, c_white, 1);
gpu_set_blendmode(bm_normal);
//
surface_reset_target();
draw_surface(surface, 0, 0);
Ty!! :3