Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_castle_cafe_Create_0

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
2
timer = 0;
3
var cloud = instance_create(x + 148, y + 78, obj_castle_cafe_cloud);
4
with (cloud)
5
{
6
    basew = 20;
7
    baseh = 15;
8
    bmodtw = 25;
9
    bmodth = 40;
10
    extw = 8;
11
    exth = 4;
12
}
13
var cloud2 = instance_create((x + 148) - 10, (((y + 78) - 20) + 10) - 6, obj_castle_cafe_cloud);
14
with (cloud2)
15
{
16
    basew = 12;
17
    baseh = 6;
18
    bmodtw = 32;
19
    bmodth = 48;
20
    exth = 6;
21
    extw = 2;
22
}
23
var cloud3 = instance_create((((x + 148) - 10) + 36) - 8, (((((y + 78) - 20) + 10) - 6) + 30) - 8, obj_castle_cafe_cloud);
24
with (cloud3)
25
{
26
    basew = 12;
27
    baseh = 6;
28
    bmodtw = 28;
29
    bmodth = 44;
30
    exth = 6;
31
    extw = 2;
32
}