Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_incense_cloud_manager_Draw_0

(view raw script w/o annotations or w/e)
1
if (!surface_exists(cloud_surface))
2
    cloud_surface = surface_create(600, 600);
3
surface_set_target(cloud_surface);
4
draw_clear_alpha(c_black, 0);
5
with (obj_incense_cloud)
6
{
7
    if (con == 0)
8
        draw_sprite_ext(sprite_index, image_index, x - (obj_growtangle.x - 300), y - (obj_growtangle.y - 300), image_xscale, image_yscale, image_angle, image_blend, 0.95);
9
}
10
surface_reset_target();
11
for (aa = 0; aa < 150; aa++)
12
    draw_surface_part(cloud_surface, 0, aa * 4, 600, 2, obj_growtangle.x - 300, (obj_growtangle.y - 300) + (aa * 4));