Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_teevie_sams_word_fx_Create_0

(view raw script w/o annotations or w/e)
1
outline_sprite = -4;
2
text_sprite = -4;
3
bg_surface = -4;
4
outline_surface = -4;
5
current_text = "";
6
current_alpha = 0;
7
current_color = c_white;
8
current_outline_color = 16777215;
9
timer = 0;
10
flashing = true;
11
_uniUV = 0;
12
_uniTime = 0;
13
_uniSpeed = 0;
14
_time = 0.025;
15
_speed = 0.75;
16
bonus_color_speed = 0.025;
17
siner = 0;
18
is_init = false;
19
is_love = false;
20
21
init = function(arg0, arg1)
22
{
23
    is_love = arg1;
24
    if (!is_love)
25
    {
26
        current_color = c_red;
27
        current_outline_color = 0;
28
    }
29
    current_text = arg0;
30
    is_init = true;
31
};
32
33
fade_out = function(arg0)
34
{
35
    flashing = false;
36
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ 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_lerpvar_respect() { 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]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_alpha", 1, 0, arg0);
37
    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, arg0 + 1);
38
};
39
40
clean_up = function()
41
{
42
    if (surface_exists(bg_surface))
43
        surface_free(bg_surface);
44
    if (surface_exists(outline_surface))
45
        surface_free(outline_surface);
46
    if (sprite_exists(text_sprite))
47
        sprite_delete(text_sprite);
48
    if (sprite_exists(outline_sprite))
49
        sprite_delete(outline_sprite);
50
};