Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_throwkris_vine_controller_Create_0

(view raw script w/o annotations or w/e)
1
state = 1;
2
timer = 0;
3
con = 0;
4
variant = 0;
5
depth = obj_spamton_neo_enemy.depth + 1;
6
for (i = 0; i < 6; i += 1)
7
{
8
    x1[i] = obj_spamton_neo_enemy.x + obj_spamton_neo_enemy.partx[i] + (obj_spamton_neo_enemy.partxoff[i] / 1.2) + (i * 5) + (sin(obj_spamton_neo_enemy.partsiner[i] / 30) * 2);
9
    x2[i] = obj_spamton_neo_enemy.x + obj_spamton_neo_enemy.partx[i] + (obj_spamton_neo_enemy.partxoff[i] / 1.5) + (i * 8);
10
    y1[i] = ((obj_spamton_neo_enemy.y + obj_spamton_neo_enemy.party[i]) - 10) + obj_spamton_neo_enemy.partyoff[i];
11
    y2[i] = -400;
12
    x2_target[i] = x2[i];
13
    x2_origin[i] = x2[i];
14
    visiblevine[i] = obj_spamton_neo_enemy.partvisible[i];
15
    weakened[i] = obj_spamton_neo_enemy.partweakened[i];
16
    obj_spamton_neo_enemy.partvisible[i] = 0;
17
}
18
if (variant == 0)
19
{
20
    for (i = 0; i < 6; i += 1)
21
        x2_target[i] = (obj_spamton_neo_enemy.x - 300) + (i * 130);
22
}
23
var a = x2_target[3];
24
x2_target[3] = x2_target[4];
25
x2_target[4] = a;