Undertale script viewer

← back to main script listing

gml_Object_obj_asriel_swordmaster_Step_0

(view raw script w/o annotations or w/e)
1
if (x < (thisx - 35))
2
    x = thisx - 35;
3
if (x > (thisx + 25))
4
    x = thisx + 25;
5
obj_asriel_body.x = x;
6
obj_asriel_body.y = y;
7
with (king)
8
{
9
    torsorot *= 0.7;
10
    if (abs(torsorot) <= 1)
11
        torsorot = 0;
12
}
13
if (freakcon > 0)
14
{
15
    if (freakcon == 1)
16
    {
17
        ftimer = 0;
18
        hy = 20;
19
        fhy = 90;
20
        freakcon = 2;
21
        event_user(7);
22
    }
23
    if (freakcon == 2)
24
    {
25
        fhy *= 0.8;
26
        king.heady = (fhy / 5) - 18;
27
        king.headrot -= fhy;
28
        ftimer += 1;
29
        if (ftimer > 34)
30
            freakcon = 3;
31
    }
32
    if (freakcon == 3)
33
    {
34
        alarm[6] = 20;
gml_Object_obj_asriel_swordmaster_Alarm_6.gml

with (obj_asriel_swordarm) instance_destroy(); king.bladecon = 10; instance_destroy();
35
        y += 2;
36
        king.heady += 8;
37
        king.image_alpha -= 0.1;
38
        if (king.image_alpha == 0)
39
            freakcon = 4;
40
    }
41
}