Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_phonehand_master_Collision_obj_yheart_shot

(view raw script w/o annotations or w/e)
1
hp--;
2
if (x <= (camerax() + 480))
3
{
4
    friction = 0.5;
5
    if (other.big == 1)
6
        hspeed += 8;
7
    else
8
        hspeed += 4;
9
    var rembig = other.big;
10
    with (obj_sneo_phonehand)
11
    {
12
        friction = 0.5;
13
        hspeed += 2;
14
        if (rembig)
15
            hspeed += 4;
16
    }
17
}
18
snd_play(snd_damage);
19
if (x >= (camerax() + 480))
20
    x = camerax() + 480;
21
with (other)
22
    event_user(0);