Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queen_throw_controller_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    init = 1;
4
    if (difficulty == 0)
5
    {
6
        x2[0] = x;
7
        y2[0] = -400;
8
        visiblevine[1] = 0;
9
        visiblevine[2] = 0;
10
        visiblevine[3] = 0;
11
        visiblevine[4] = 0;
12
        visiblevine[5] = 0;
13
    }
14
    if (difficulty == 1)
15
    {
16
        x2[0] = x;
17
        y2[0] = -400;
18
        x_offset[0] = -2;
19
        x2[1] = x;
20
        y2[1] = -400;
21
        x_offset[1] = -2;
22
        visiblevine[2] = 0;
23
        visiblevine[3] = 0;
24
        visiblevine[4] = 0;
25
        visiblevine[5] = 0;
26
    }
27
    if (difficulty == 2)
28
    {
29
        x2[0] = x - 200;
30
        y2[0] = -400;
31
        x_offset[0] = -8;
32
        x2[1] = x;
33
        y2[1] = -400;
34
        x2[2] = x + 200;
35
        y2[2] = -400;
36
        x_offset[2] = 8;
37
        visiblevine[3] = 0;
38
        visiblevine[4] = 0;
39
        visiblevine[5] = 0;
40
    }
41
    if (difficulty == 3)
42
    {
43
        x2[0] = x - 180;
44
        y2[0] = -400;
45
        x_offset[0] = -7;
46
        x2[1] = x - 60;
47
        y2[1] = -400;
48
        x_offset[1] = 1;
49
        x2[2] = x + 60;
50
        y2[2] = -400;
51
        x_offset[2] = 1;
52
        x2[3] = x + 180;
53
        y2[3] = -400;
54
        x_offset[3] = 7;
55
        visiblevine[4] = 0;
56
        visiblevine[5] = 0;
57
    }
58
    if (difficulty == 4)
59
    {
60
        x2[0] = x - 260;
61
        y2[0] = -400;
62
        x_offset[0] = -10;
63
        x2[1] = x - 130;
64
        y2[1] = -400;
65
        x_offset[1] = -5;
66
        x2[2] = x;
67
        y2[2] = -400;
68
        x2[3] = x + 130;
69
        y2[3] = -400;
70
        x_offset[3] = 4;
71
        x2[4] = x + 260;
72
        y2[4] = -400;
73
        x_offset[4] = 10;
74
        visiblevine[5] = 0;
75
    }
76
}