Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_remotepianomove_Create_0

(view raw script w/o annotations or w/e)
1
ui = instance_create(x, y, obj_dw_church_remotepianomove_ui);
2
ui.depth = 500;
3
con = 0;
4
timer = 0;
5
yoffset = 0;
6
yspeed = 0;
7
shakex = 0;
8
ralshakex = 0;
9
currentdir = -1;
10
movedir = -1;
11
shakey = 0;
12
mysolid = instance_create(x, y, obj_trigger_interact);
13
engaged = false;
14
ralsei_knocked_down = 0;
15
with (mysolid)
16
{
17
    sprite_index = spr_pxwhite;
18
    
scr_size
scr_size

function
scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{ with (arg2) { image_xscale = arg0; image_yscale = arg1; } }
(68, 18);
19
    image_alpha = 0.4;
20
    image_blend = c_yellow;
21
    issolid = true;
22
    strict = true;
23
}
24
final = room != room_dw_churchb_library;
25
if (global.flag[1585] && !final)
26
{
27
    x = floor(global.flag[1585] / 1000) * 40;
28
    y = (global.flag[1585] % 1000) * 40;
29
}
30
ubuff = 0;
31
rbuff = 0;
32
lbuff = 0;
33
dbuff = 0;
34
xbuff = 0;
35
cbuff = 0;
36
zbuff = 0;
37
hijackcamera = true;
38
camcont = false;
39
engaged = false;
40
con = 0;
41
movedir = -1;
42
myhspeed = 0;
43
myvspeed = 0;
44
timer = 0;
45
endtimer = 0;
46
endtime = 15;
47
buffer = 0;
48
followshelf = false;
49
hitstop = 0;
50
camcontrol = false;
51
camx = 0;
52
camy = 0;
53
camcon = 0;
54
camstrength = 1;
55
alpha = 0;
56
siner = 0;
57
soundtoplay = -1;
58
makenote = 0;
59
drawx = x + 40;
60
drawy = y - 70;
61
if (!instance_exists(obj_tutorial_text))
62
    instance_create(0, 0, obj_tutorial_text);