Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_follow_spear_Step_0

(view raw script w/o annotations or w/e)
1
image_alpha += 0.05;
2
image_angle -= rotspeed;
3
if (rotspeed > 0)
4
    rotspeed -= 2;
5
if (rotspeed == 0 && speed < 1)
6
{
7
    timer++;
8
    if (timer == 5)
9
    {
10
        speed = 8;
11
        friction = -0.3;
12
        direction = image_angle;
13
        image_angle = direction;
14
    }
15
}
16
if (fade == 1 && speed >= 7)
17
{
18
    timer++;
19
    if (timer >= 22)
20
        deactivate = 1;
21
}
22
if (deactivate == 1)
23
{
24
    image_alpha -= 0.25;
25
    if (image_alpha <= 0)
26
        instance_destroy();
27
}
28
if (global.turntimer < 1)
29
    instance_destroy();