Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_plat_enm_yellow_miniboss_Destroy_0

related scripts: Collision_obj_plat_enm_smallgloveCollision_obj_plat_playerCollision_obj_plat_susieaxe_hbxCreate_0Destroy_0 Draw_0Draw_72Other_19Other_4PreCreate_0Step_0Step_2

(view raw script w/o annotations or w/e)
1
with (my_camzone)
2
    instance_destroy();
3
with (obj_plat_camera)
4
{
5
    min_x = 0;
6
    max_x = room_width;
7
}
8
with (obj_plat_cam_clampzone)
9
{
10
    if (y == -200)
11
        y = 200;
12
    if (x == 0 && y == 0)
13
        instance_destroy();
14
}
15
if (!hit)
16
    exit;
17
spawn_death_coins();
18
audio_stop_sound(snd_enemy_defeat_quick);
19
snd_play(snd_enemy_defeat_quick);
20
with (instance_create_depth(x, y, depth, obj_plat_vfx))
21
{
22
    sprite_index = spr_hit_vfx;
23
    image_speed = 1;
24
}
25
with (instance_create_depth(x, y, depth, obj_plat_vfx))
26
{
27
    sprite_index = spr_smokepuff;
28
    image_speed = 2;
29
}
30
clear_targets();
31
with (obj_plat_follower)
32
    drop_off_platform_mode(true);
33
scr_plat_hitstop_global
scr_plat_hitstop_global

function
scr_plat_hitstop_global(arg0)
{ with (obj_plat_game) hitstop = max(arg0, hitstop); }
(8);
34
var snd = snd_play_pitch(snd_creepylaugh, 0.8);
35
snd_pitch_time(snd, 0.4, 15);
36
snd_volume(snd, 0, 30);
37
with (obj_plat_bullet)
38
{
39
    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] target = arg0; } return _doom; }
(self, 30);
40
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_alpha", image_alpha, 0, 30);
41
}
42
scr_flower_die
scr_flower_die

function
scr_flower_die(arg0 = 2, arg1 = 6, arg2 = 5, arg3 = 0, arg4 = true)
{ if (arg0 >= 3) { with (instance_create_depth(x, y, depth, obj_flowerdie_big)) { sprite_index = other.sprite_index; image_index = other.image_index; image_angle = other.image_angle; image_xscale = other.image_xscale; image_yscale = other.image_yscale; image_speed = other.image_speed; coindrops = arg3; use_image_speed = arg4; if (arg0 == 4) { wall_smash = true; if (other.image_xscale < 0) image_angle += 180; } } } else { with (instance_create_depth(x, y, depth, obj_flowerdie)) { speed = arg2; if (arg0 == 1) { sprite_index = spr_falling_petal; image_blend = c_gray; image_xscale = 2; image_yscale = 2; } amount = arg1; size = arg0; } if (arg0 == 1) instance_create_depth(x, y, depth - 5, obj_flowerdie_mini); if (arg3 == 0) exit; scr_plat_makecoins(x, y, -coindrops, 90, 90, 8, 4, depth); coindrops = 0; } }
(3, undefined, undefined, coindrops, false);
43
with (obj_plat_bullet)
44
{
45
    hit = 1;
46
    instance_destroy();
47
}
48
if (simple)
49
{
50
    with (obj_plat_enm_smallglove)
51
    {
52
        hit = 1;
53
        instance_destroy();
54
    }
55
    with (obj_plat_enm_glovespawner)
56
    {
57
        if (extflag == other.extflag)
58
        {
59
            hit = 1;
60
            instance_destroy();
61
        }
62
    }
63
    with (__spawner)
64
        instance_destroy();
65
}