Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_tracking_swords_manager_Draw_0

(view raw script w/o annotations or w/e)
1
if (!surface_exists(hell_surface))
2
    hell_surface = surface_create(150, 150);
3
surface_set_target(hell_surface);
4
draw_clear_alpha(c_black, 0);
5
draw_set_blend_mode(bm_add);
6
with (obj_tracking_sword_slash)
7
    draw_sprite_ext(sprite_index, image_index, x - gt_minx(), y - gt_miny(), image_xscale, image_yscale, image_angle, c_white, image_alpha);
8
draw_set_blend_mode(bm_normal);
9
surface_reset_target();
10
draw_surface(hell_surface, gt_minx(), gt_miny());