Undertale script viewer

← back to main script listing

gml_Object_obj_6book_act_Step_0

(view raw script w/o annotations or w/e)
1
if (type == 1)
2
{
3
    if (speed > 0)
4
        speed -= 0.03;
5
    if (speed < 0)
6
        speed = 0;
7
}
8
if (x > (405 - (sprite_width / 2)))
9
{
10
    if (hspeed > 0)
11
        hspeed = -hspeed;
12
}
13
if (x < (250 + (sprite_width / 2)))
14
{
15
    if (hspeed < 0)
16
        hspeed = -hspeed;
17
}