Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_plat_enm_yellow_punishmentgun_Draw_0

related scripts: CleanUp_0Collision_obj_plat_playerCollision_obj_plat_susieaxe_hbxCreate_0Destroy_0Draw_0 Draw_72Other_20Other_4Step_0Step_2

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (hp > 0)
3
{
4
    draw_set_blend_mode(bm_add);
5
    var glow_alpha = 0.6 + (0.25 * sin(fx_timer));
6
    if (auraalph > 0)
7
        draw_self_ext(undefined, undefined, undefined, undefined, undefined, undefined, undefined, 255, auraalph * 0.2);
8
    draw_self_ext(4092, undefined, undefined, undefined, undefined, undefined, undefined, 255, glow_alpha);
9
    draw_set_blend_mode(bm_normal);
10
}
11
if (laser_width > 0 && !killed)
12
{
13
    var ang = 0;
14
    var spr = 7595;
15
    var col = 16777215;
16
    if (con == 1)
17
    {
18
        col = 65535;
19
        spr = 3637;
20
        ang = image_angle + 180;
21
    }
22
    draw_sprite_ext(spr, 0, x, bbox_bottom + 24, laser_width * 3, 3, ang, col, contimer / 30);
23
}