Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_sceneex2_Create_0

(view raw script w/o annotations or w/e)
1
drawblack = 2;
2
drawtrack = 1;
3
trackx = 0;
4
tracky0 = 180;
5
tracky1 = 240;
6
tracky2 = 300;
7
fightmode = 0;
8
trackspeed = 0;
9
trackaccel = 0;
10
trackspeedmax = 0;
11
cityscapefade = 0;
12
cityscape_active = false;
13
cityscape_speed = 0;
14
cityscape_alpha = 0;
15
init = 0;
16
con = -1;
17
customcon = 0;
18
timer = 0;
19
sneo_x_save = 0;
20
sneo_y_save = 0;
21
shortened = false;
22
special_scene = false;
23
rudebuster = false;
24
sneo_fly = false;
25
sneo_release = false;
26
forcend = 0;
27
shop_spamton_bg_con = 0;
28
shop_spamton_bg_timer = 0;
29
cityscape_speed_max = 5;
30
if (global.chapter != 2 || global.flag[309 spamton_plot] < 8)
31
{
32
}
33
else
34
{
35
    if (global.tempflag[32] == 1)
36
        shortened = true;
37
    start_xpos = shortened ? (x + 100) : x;
38
    con = 1;
39
    scr_losechar
scr_losechar

function scr_losechar() { global.char[2] = 0; global.char[1] = 0; with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } global.submenu = 0; global.charselect = -1; for (i = 0; i < 36; i += 1) global.submenucoord[i] = 0; }
();
40
    if (instance_exists(obj_caterpillarchara))
41
        instance_destroy(obj_caterpillarchara);
42
    coaster_marker_kris = 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; }
(0, cameray() - 500, spr_sneo_car_empty);
43
    with (coaster_marker_kris)
44
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
45
    coaster_marker_ra = 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; }
(0, cameray() - 500, spr_sneo_car_empty);
46
    with (coaster_marker_ra)
47
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
48
    coaster_marker_su = 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; }
(0, cameray() - 500, spr_sneo_car_empty);
49
    with (coaster_marker_su)
50
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
51
    coaster_kris = instance_create(0, cameray() - 500, obj_coaster);
52
    coaster_kris.depth = 90000;
53
    coaster_kris.visible = 0;
54
    coaster_susie = instance_create(0, cameray() - 500, obj_coaster);
55
    coaster_susie.type = 1;
56
    coaster_susie.depth = 80000;
57
    coaster_susie.character_sprite = spr_susie_shock;
58
    coaster_susie.visible = 0;
59
    coaster_ralsei = instance_create(0, cameray() - 500, obj_coaster);
60
    coaster_ralsei.type = 2;
61
    coaster_ralsei.depth = 70000;
62
    coaster_ralsei.character_sprite = spr_ralsei_hurt_fixed;
63
    coaster_ralsei.visible = 0;
64
    loop_tiles = false;
65
    bg_loop = layer_get_id("BG_Loop");
66
    whiteall = 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; }
(-10, -10, spr_pixel_white);
67
    whiteall.image_xscale = 999;
68
    whiteall.image_yscale = 999;
69
    whiteall.depth = 0;
70
    whiteall.image_alpha = 0;
71
}