Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_windy_kris_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
3
hide = function()
4
{
5
    if (!is_active)
6
        exit;
7
    is_active = false;
8
    visible = false;
9
    with (obj_mainchara)
10
        visible = true;
11
};
12
13
show = function()
14
{
15
    if (is_active)
16
        exit;
17
    is_active = true;
18
    visible = true;
19
    with (obj_mainchara)
20
    {
21
        visible = false;
22
        battlealpha = 0;
23
        battleheart.image_alpha = 0;
24
    }
25
};
26
27
battle_mode_start = function()
28
{
29
    if (battle_mode)
30
        exit;
31
    battle_mode = true;
32
    show();
33
    scr_lerp_var_instance(id, "battle_alpha", battle_alpha, 0.6, 15);
34
};
35
36
battle_mode_stop = function()
37
{
38
    if (!is_active)
39
        exit;
40
    is_active = false;
41
    scr_lerp_var_instance(id, "battle_alpha", battle_alpha, 0, 15);
42
    scr_delay_var("visible", false, 16);
43
    scr_delay_var("battle_mode", false, 16);
44
    with (obj_mainchara)
45
        scr_delay_var("visible", true, 16);
46
};