Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_perfect_popularity_Create_0

(view raw script w/o annotations or w/e)
1
letters1 = stringsetloc(
POPULARITY
"POPULARITY", "obj_susiezilla_perfect_popularity_slash_Create_0_gml_1_0"
);
2
letters2 = stringsetloc(
BONUS
"BONUS", "obj_susiezilla_perfect_popularity_slash_Create_0_gml_2_0"
);
3
letters1_length = string_length(letters1);
4
midlength1 = (letters1_length + 1) / 2;
5
letters2_length = string_length(letters2);
6
midlength2 = (letters2_length + 1) / 2;
7
maxlength = max(letters1_length, letters2_length);
8
timer = 0;
9
xoff = x - camerax();
10
yoff = y - cameray();
11
12
create_letter = function(arg0, arg1, arg2)
13
{
14
    var xdiff = arg1 - x;
15
    var ydiff = arg2 - y;
16
    with (instance_create_depth(arg1, arg2, depth, obj_susiezilla_perfect_chain_letter))
17
    {
18
        display_x = other.xoff + xdiff;
19
        display_y = other.yoff + ydiff;
20
        color = c_yellow;
21
        letter = arg0;
22
    }
23
};