Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_speen_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
timer = 0;
3
con = 0;
4
destroyonhit = false;
5
active = 0;
6
image_speed = 0.4;
7
image_xscale = 2;
8
image_yscale = 2;
9
image_alpha = 1;
10
depth = -999999;
11
if (x < obj_growtangle.x)
12
{
13
    image_xscale = -2;
14
    direction = 0;
15
    inst = instance_create((obj_growtangle.x - 75) + 5, obj_growtangle.y, obj_gerson_growtangle_telegraph);
16
    inst.image_xscale = 142;
17
    inst.image_yscale = 72;
18
    if (i_ex(obj_heart))
19
        inst.depth = obj_heart.depth + 1;
20
    snd_play_pitch(snd_eye_telegraph, 0.95);
21
}
22
else
23
{
24
    image_xscale = 2;
25
    direction = 180;
26
    inst = instance_create((obj_growtangle.x - 75) + 5, (obj_growtangle.y - 75) + 5, obj_gerson_growtangle_telegraph);
27
    inst.image_xscale = 142;
28
    inst.image_yscale = 70;
29
    if (i_ex(obj_heart))
30
        inst.depth = obj_heart.depth + 1;
31
    snd_play_pitch(snd_eye_telegraph, 1);
32
}