Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_prophecy_custom_Create_0

(view raw script w/o annotations or w/e)
1
init = false;
2
custom_sprite = -4;
3
bg_surface = -4;
4
mode = 0;
5
sprite_mask = -4;
6
sprite_x_offset = 0;
7
sprite_y_offset = 0;
8
sprite_string = [];
9
text_x_offset = 0;
10
text_y_offset = 0;
11
text_alignment = "center";
12
13
initialize_sprite = function(arg0, arg1 = 0, arg2 = 0)
14
{
15
    mode = 0;
16
    sprite_mask = arg0;
17
    sprite_x_offset = arg1;
18
    sprite_y_offset = arg2;
19
    init = true;
20
};
21
22
initialize_text = function(arg0, arg1, arg2)
23
{
24
    mode = 1;
25
    sprite_string = string_split(arg0[0], "#", false, 99);
26
    text_alignment = arg0[1];
27
    text_x_offset = arg1;
28
    text_y_offset = arg2;
29
    init = true;
30
};