Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_bramble_Other_20

(view raw script w/o annotations or w/e)
1
on_slashed();
2
with (fademarker)
3
{
4
    with (lerper)
5
        instance_destroy();
6
    image_alpha = 0;
7
}
8
audio_stop_sound(snd_punchweak);
9
snd_play_pitch(snd_punchweak, 1.1);
10
var _y = (bbox_bottom + bbox_top) / 2;
11
with (instance_create_depth(x, _y, depth, obj_plat_vfx))
12
{
13
    sprite_index = spr_hit_vfx;
14
    image_speed = 1;
15
    depth = other.depth - 1;
16
}
17
with (instance_create_depth(x, _y, depth - 1, obj_flowerdie))
18
{
19
    sprite_index = spr_papergrass_pieces;
20
    scale = other.image_xscale;
21
    speed = 5;
22
    image_blend = other.image_blend;
23
}
24
with (lerper)
25
    instance_destroy();
26
image_index = 1;
27
mask_index = spr_plat_blankmask;
28
alarm[1]
 = 96;
gml_Object_obj_bramble_Alarm_1.gml

if (collision_rectangle(bbox_left - 60, bbox_top - 60, bbox_right + 60, bbox_bottom + 60, obj_plat_player, false, true)) { alarm[1]
 = 10;
exit; } with (fademarker) { lerper =
scr_lerpvar("image_alpha", 0, 1, 16);
image_blend = other.image_blend; } mask_index = -4; if (_act != -4 && instance_exists(_act)) _act.blocked = false;