Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_changing_room_stars_Create_0

(view raw script w/o annotations or w/e)
1
siner = 0;
2
star[0] = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(503, 145, spr_dw_changing_room_stars);
3
star[1] = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(547, 112, spr_dw_changing_room_stars);
4
star[1].image_index = 1;
5
star[2] = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(614, 156, spr_dw_changing_room_stars);
6
star[2].image_index = 2;
7
star[3] = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(702, 153, spr_dw_changing_room_stars);
8
star[3].image_index = 3;
9
for (var i = 0; i < array_length_1d(star); i++)
10
{
11
    with (star[i])
12
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
13
}
14
star_event = 
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1027) == 0;
15
if (star_event)
16
{
17
    floor_cover = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(640, 200, spr_dw_changing_room_floor_cover);
18
    with (floor_cover)
19
        depth = 98000;
20
    loose_star = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(665, 120, spr_dw_changing_room_star);
21
    loose_star.depth = floor_cover.depth - 10;
22
}
23
star_fall = false;
24
star_fall_timer = 0;
25
entered_zone = false;