Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_plat_enm_yellow_punishmentgun_Destroy_0

related scripts: CleanUp_0Collision_obj_plat_playerCollision_obj_plat_susieaxe_hbxCreate_0Destroy_0 Draw_0Draw_72Other_20Other_4Step_0Step_2

(view raw script w/o annotations or w/e)
1
if (!hit)
2
    exit;
3
with (obj_plat_camera)
4
{
5
    min_x = 0;
6
    max_x = room_width;
7
}
8
audio_stop_sound(snd_enemy_defeat_quick);
9
snd_play(snd_enemy_defeat_quick);
10
with (instance_create_depth(x, y, depth, obj_plat_vfx))
11
{
12
    sprite_index = spr_hit_vfx;
13
    image_speed = 1;
14
}
15
with (instance_create_depth(x, y, depth, obj_plat_vfx))
16
{
17
    sprite_index = spr_smokepuff;
18
    image_speed = 2;
19
}
20
with (obj_plat_follower)
21
    drop_off_platform_mode(true);
22
scr_plat_hitstop_global
scr_plat_hitstop_global

function
scr_plat_hitstop_global(arg0)
{ with (obj_plat_game) hitstop = max(arg0, hitstop); }
(8);
23
var snd = snd_play_pitch(snd_creepylaugh, 0.8);
24
snd_pitch_time(snd, 0.4, 15);
25
snd_volume(snd, 0, 30);
26
with (obj_plat_bullet)
27
{
28
    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] = arg1; target = arg0; } return _doom; }
(self, 30);
29
    
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);
30
}
31
with (instance_create_depth(x, y, depth, obj_flowerdie))
32
{
33
    speed = 12;
34
    amount = 12;
35
}
36
with (obj_plat_bullet)
37
{
38
    hit = 1;
39
    instance_destroy();
40
}