Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_church_secretpiano_playable_Create_0

(view raw script w/o annotations or w/e)
1
mysolid = -4;
2
if (global.plot >= 242)
3
{
4
    instance_destroy();
5
    exit;
6
}
7
event_inherited();
8
image_alpha = 0;
9
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
10
    image_alpha = 0.1;
11
image_speed = 0;
12
depth = 500;
13
con = 0;
14
timer = 0;
15
difficulty = 0;
16
canuse = true;
17
canceltimer = 0;
18
instructionLerp = 0;
19
canceltime = 15;
20
buffer = 0;
21
kris = 0;
22
ralsei = 0;
23
susie = 0;
24
siner = 0;
25
camx = -1;
26
camy = -1;
27
kr_x = x;
28
kr_y = y;
29
drawx = x;
30
drawy = y;
31
drawspace = 30;
32
alpha = 0;
33
solution = 
scr_secretpianocombo
scr_secretpianocombo

function
scr_secretpianocombo(arg0 = 3)
{ var combo = ["7071", "3050", "5310"]; if (arg0 < 3) return combo[arg0]; else return combo[0] + combo[1] + combo[2]; }
();
34
progress = "";
35
freeplay = false;
36
cantuse = false;
37
solved = false;
38
catafollow = true;
39
forceend = 0;
40
notesplayed = false;
41
index = 0;
42
camcon = 0;
43
camxoverride = camerax();
44
camyoverride = cameray();
45
soundtoplay = -1;
46
memvolume = 1;
47
resetlight = 0;
48
indexlerper = 0;
49
makeafterimage = 0;
50
instrument = 524;
51
var spritesArray = layer_get_all_elements("DEBUG_ASSETS");
52
for (var i = 0; i < array_length(spritesArray); i++)
53
{
54
    if (layer_sprite_get_sprite(spritesArray[i]) == 2862)
55
    {
56
        pianomarker = scr_marker_fromasset(spritesArray[i]);
57
        
scr_depth_alt
scr_depth_alt

function
scr_depth_alt(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10) + (arg1 * 10)); }
(pianomarker);
58
    }
59
}
60
if (!i_ex(obj_tutorial_text))
61
    instance_create(x, y, obj_tutorial_text);
62
if (global.flag[1547])
63
    cantuse = true;