Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_DCA09_piano_Create_0

(view raw script w/o annotations or w/e)
1
piano_song[0] = snd_init("kris_piano_lower.ogg");
2
piano_song[1] = audio_play_sound(piano_song[0], 90, 0);
3
kris_marker = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x, y, spr_kris_piano_full);
4
with (kris_marker)
5
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
6
piano_start = true;
7
piano_timer = 0;
8
piano_finish = false;