Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_pendulum1_Collision_obj_yheart_shot

(view raw script w/o annotations or w/e)
1
if (destroyable == 1)
2
{
3
    if (other.big == 0)
4
        myspeed += 1;
5
    if (other.big)
6
        myspeed = 4;
7
    with (other)
8
        event_user(0);
9
    flash = 1;
10
    if (sin((siner + swingdir) / 20) < sin(siner / 20))
11
        swingdir *= -1;
12
}
13
else if (destroyable == -1)
14
{
15
    with (other)
16
        event_user(0);
17
}