Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queen_explodinghead_intro_Step_0

(view raw script w/o annotations or w/e)
1
if (global.turntimer < 2)
2
    instance_destroy();
3
x = xstart + lengthdir_x(length, place);
4
y = ystart + lengthdir_y(length, place);
5
var a = 1;
6
if (first == 1)
7
    a = 3;
8
repeat (a)
9
{
10
    place += 10;
11
    place2 += 10;
12
    length -= 2;
13
}
14
if (length <= 0)
15
{
16
    instance_destroy();
17
    d = instance_create(x, y, obj_queen_explodinghead);
18
    d.buffer = bufferattack;
19
    d.damage = damage;
20
    d.target = target;
21
    d.ultimate = ultimate;
22
    d.laugh = 1;
23
}