Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_scene11a_bg_Create_0

(view raw script w/o annotations or w/e)
1
cityscape_bg_0 = instance_create(0, 0, obj_looping_tiled_area);
2
cityscape_bg_0.sprite_index = spr_cyber_coaster_bg_tile;
3
cityscape_bg_0.width = sprite_get_width(spr_cyber_coaster_bg_cityscape) * 2 * 3;
4
cityscape_bg_0.height = sprite_get_height(spr_cyber_coaster_bg_cityscape) - 1;
5
cityscape_bg_0.room_wide = true;
6
cityscape_bg_0.depth = 1000500;
7
cityscape_bg_0.x_scale = 1;
8
cityscape_bg_0.y_scale = 1;
9
cityscape_bg_1 = instance_create(0, 0, obj_looping_tiled_area);
10
cityscape_bg_1.sprite_index = spr_cyber_coaster_bg_cityscape_bg;
11
cityscape_bg_1.width = sprite_get_width(spr_cyber_coaster_bg_cityscape_bg) * 2 * 3;
12
cityscape_bg_1.height = sprite_get_height(spr_cyber_coaster_bg_cityscape_bg) - 1;
13
cityscape_bg_1.room_wide = true;
14
cityscape_bg_1.depth = 1000400;
15
cityscape_bg_1.x_scale = 1;
16
cityscape_bg_1.y_scale = 1;
17
cityscape_bg_2 = instance_create(0, 0, obj_looping_tiled_area);
18
cityscape_bg_2.sprite_index = spr_cyber_coaster_bg_cityscape_fg;
19
cityscape_bg_2.width = sprite_get_width(spr_cyber_coaster_bg_cityscape_fg) * 2 * 3;
20
cityscape_bg_2.height = sprite_get_height(spr_cyber_coaster_bg_cityscape_fg) - 1;
21
cityscape_bg_2.room_wide = true;
22
cityscape_bg_2.depth = 1000300;
23
cityscape_bg_2.x_scale = 1;
24
cityscape_bg_2.y_scale = 1;
25
coaster_bg_1 = instance_create(815, 64, obj_looping_tiled_area);
26
coaster_bg_1.sprite_index = bg_dw_city_coaster_track_fullwidth;
27
coaster_bg_1.width = sprite_get_width(bg_dw_city_coaster_track_fullwidth) * 2 * 3;
28
coaster_bg_1.height = sprite_get_height(bg_dw_city_coaster_track_fullwidth) - 1;
29
coaster_bg_1.room_wide = true;
30
coaster_bg_1.depth = 1000200;
31
coaster_bg_1.x_scale = 1;
32
coaster_bg_1.y_scale = 1;
33
for (var i = 0; i < 3; i++)
34
{
35
    coaster_track[i] = instance_create(815, 130 + (i * 60), obj_looping_tiled_area);
36
    coaster_track[i].sprite_index = spr_cyber_coaster_track;
37
    coaster_track[i].width = sprite_get_width(spr_cyber_coaster_track) * 2 * 7;
38
    coaster_track[i].height = sprite_get_height(spr_cyber_coaster_track) - 1;
39
    coaster_track[i].room_wide = true;
40
    coaster_track[i].depth = 1000100;
41
    coaster_track[i].x_scale = 1;
42
    coaster_track[i].y_scale = 1;
43
}
44
parallax = true;
45
looping = false;
46
fountain = 
scr_marker_animated
scr_marker_animated

function
scr_marker_animated()
{ var x_pos = argument[0]; var y_pos = argument[1]; var sprite = argument[2]; var anim_speed = (argument_count > 3) ? argument[3] : 0.2; thismarker = instance_create(x_pos, y_pos, obj_marker); with (thismarker) { sprite_index = sprite; image_speed = anim_speed;
scr_depth();
} return thismarker; }
(815, 0, spr_cyber_coaster_bg_fountain);
47
with (fountain)
48
{
49
    depth = 1000450;
50
    image_speed = 0.125;
51
}
52
fountain_active = false;