Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_kristhrown_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0 || con == 2)
2
    image_angle = direction;
3
if (x > (xx + 700) || y < (yy - 40))
4
{
5
    if (con == 0)
6
    {
7
        gravity = 0;
8
        speed = 0;
9
        x = xx - 40;
10
        y = obj_herokris.y;
11
        sprite_index = spr_krisb_idle;
12
        image_angle = 0;
13
        hspeed = 20;
14
        con = 10;
15
    }
16
}
17
if (con == 10)
18
{
19
    timer += 1;
20
    if (x >= (obj_herokris.x - 10))
21
    {
22
        if (collided == 0)
23
        {
24
            global.msg[0] = stringsetloc(
* Missed!Wait for inputClose Message
"* Missed!/%", "obj_sneo_kristhrown_slash_Step_0_gml_23_0"
);
25
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
26
        }
27
        with (obj_herokris)
28
            visible = 1;
29
        with (obj_herosusie)
30
            visible = 1;
31
        visible = 0;
32
        with (obj_sneo_throwtarget)
33
            instance_destroy();
34
        with (obj_sneo_throwkris)
35
            instance_destroy();
36
        con = 11;
37
    }
38
}
39
if (con == 11 && !instance_exists(obj_writer))
40
{
41
    obj_spamton_neo_enemy.actcon = 15;
42
    instance_destroy();
43
}
44
if (con == 2)
45
{
46
    if (x < (xx - 40) || y > (yy + 520))
47
    {
48
        timer = 0;
49
        gravity = 0;
50
        speed = 0;
51
        x = xx - 40;
52
        y = obj_herokris.y;
53
        sprite_index = spr_krisb_idle;
54
        image_angle = 0;
55
        hspeed = 20;
56
        con = 10;
57
    }
58
}