Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_singlescreen_shadowguy_laser_machine_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
3
value = 100;
4
states = 
5
{
6
    none: -1,
7
    rope: 0,
8
    charge: 1,
9
    fire: 2,
10
    recharge: 3,
11
    dead: 4,
12
    hurt: 5
13
};
14
shake = 0;
15
polarity = 1;
16
tenna_panic = false;
17
hurt_counter = 0;
18
hurt_index = 0;
19
laser_width = 2;
20
laser_width_goal = 2;
21
laser_offset = 0;
22
laser_wobble = 0;
23
charge_index[0] = 4604;
24
charge_index[1] = 3542;
25
charge_index[2] = 4823;
26
charge_index[3] = 4291;
27
offset_index[0] = 0;
28
offset_index[1] = 1;
29
offset_index[2] = 4;
30
offset_index[3] = 12;
31
state = states.rope;
32
state_timer = 0;
33
hurt_timer = 0;
34
prev_state = 0;
35
maxhp = 12;
36
hp = maxhp;
37
image_speed = 0;
38
xanchor = x;
39
y = clamp(y, 200, 380);
40
myxcenter = x;
41
myycenter = y;
42
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; }
("ropeheight", -360, 0, 16, 1, "in");
43
facing = sign(obj_susiezilla_statue.x - x);
44
max_charge = 240;
45
rxo = 0;
46
ryo = 0;
47
ra = 0;
48
alarm[5]
 = 16;
gml_Object_obj_susiezilla_singlescreen_shadowguy_laser_machine_Alarm_5.gml

with (obj_susiezilla_gamecontroller) shake = 6; snd_stop(snd_drive); snd_play(snd_screenshake);
49
snd_play_x(snd_drive, 0.5, 1.2);