Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_ch5_LW01_kris_cage_Create_0

(view raw script w/o annotations or w/e)
1
_active = false;
2
_anim_index = 0;
3
_anim_timer = 0;
4
_anim_speed = 0;
5
_arm_index = 0;
6
_rummage_loop = false;
7
_state = 0;
8
_kris_x = x;
9
_kris_y = y;
10
_finished = false;
11
12
start = function()
13
{
14
    _active = true;
15
};
16
17
pause = function()
18
{
19
    _active = false;
20
};
21
22
get_kris_x = function()
23
{
24
    return _kris_x;
25
};
26
27
get_kris_y = function()
28
{
29
    return _kris_y;
30
};
31
32
heart_burst_event = function()
33
{
34
    
scr_shakescreen
scr_shakescreen

function
scr_shakescreen(arg0 = 4)
{ with (instance_create(x, y, obj_shake)) { shakex = arg0; shakey = arg0; } }
();
35
    var burst = instance_create(x + 8, y + 8, obj_heartburst);
36
    burst.depth = depth - 10;
37
    snd_play(snd_grab);
38
    snd_play(snd_hurt1);
39
};