Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_battleback_Draw_0

(view raw script w/o annotations or w/e)
1
xx = __view_get(e__VW.XView, 0);
2
yy = __view_get(e__VW.YView, 0);
3
siner += 0.5;
4
siner2 += 1;
5
draw_set_alpha(image_alpha);
6
draw_set_color(c_black);
7
draw_rectangle(-10, -10, room_width + 10, room_height + 10, false);
8
draw_set_alpha(1);
9
if (destroy == 0)
10
{
11
    if (image_alpha <= 1)
12
        image_alpha += 0.1;
13
}
14
draw_background_tiled_ext(bg_battleback1, round(-100 + siner), round(-100 + siner), 1, 1, image_blend, image_alpha / 2);
15
draw_background_tiled_ext(bg_battleback1, round(-200 - siner2), round(-210 - siner2), 1, 1, image_blend, image_alpha);
16
if (siner >= 100)
17
    siner -= 100;
18
if (siner2 >= 100)
19
    siner2 -= 100;
20
if (destroy == 1)
21
{
22
    image_alpha -= 0.1;
23
    if (image_alpha <= 0)
24
        instance_destroy();
25
}
26
27
enum e__VW
28
{
29
    XView,
30
    YView,
31
    WView,
32
    HView,
33
    Angle,
34
    HBorder,
35
    VBorder,
36
    HSpeed,
37
    VSpeed,
38
    Object,
39
    Visible,
40
    XPort,
41
    YPort,
42
    WPort,
43
    HPort,
44
    Camera,
45
    SurfaceID
46
}