Undertale script viewer

← back to main script listing

gml_Object_obj_musicstatue_Create_0

(view raw script w/o annotations or w/e)
1
myinteract = 0;
2
facing = 0;
3
direction = 270;
4
talkedto = 0;
5
image_speed = 0;
6
mask = instance_create(x, y, obj_npc_marker);
7
mask.sprite_index = spr_plinkmask;
8
mask.image_speed = 0;
9
shadow = instance_create(0, 0, obj_npc_marker);
10
shadow.sprite_index = spr_statueshadow;
11
shadow.image_alpha = 0.4;
12
shadow.depth = 1000;
13
shadow.visible = true;
14
light = instance_create(0, 0, obj_npc_marker);
15
light.sprite_index = spr_statuelight;
16
light.image_alpha = 0.1;
17
light.depth = 1000;
18
light.visible = true;
19
bgvol = caster_get_volume(global.currentsong);
20
boxvol = 0.25;
21
boxactive = 0;
22
if (global.flag[86 music_statue_on] == 1)
23
{
24
    boxactive = 1;
25
    mask.image_index = 1;
26
    musicbox = caster_load("music/musicbox.ogg");
27
    image_index = 1;
28
    caster_loop(musicbox, 0.25, 0.9);
29
}
30
con = 0;
31
alarm[5] = 2;
gml_Object_obj_musicstatue_Alarm_5.gml

instance_create(x + 2 + random(sprite_width - 6), -8 - random(20), obj_statuedrop); alarm[5] = 3;