Undertale script viewer
← back to main script listing
gml_Object_obj_pushrock1_Collision_1576
(view raw script w/o annotations or w/e)
1 |
other.moving = 0; |
2 |
if (push == 0) |
3 |
{ |
4 |
if (global.facing == 1) |
5 |
{ |
6 |
x += 3; |
7 |
other.x += 3; |
8 |
other.moving = 1; |
9 |
} |
10 |
if (global.facing == 3) |
11 |
{ |
12 |
if (x > xstart) |
13 |
{ |
14 |
x -= 3; |
15 |
other.x -= 3; |
16 |
other.moving = 1; |
17 |
} |
18 |
} |
19 |
} |