Undertale script viewer

← back to main script listing

gml_Object_obj_tileguy_Other_10

(view raw script w/o annotations or w/e)
1
if (instance_position(checkx, checky, obj_tilepink))
2
    thistile = 1;
3
if (instance_position(checkx, checky, obj_tilered))
4
    thistile = 2;
5
if (instance_position(checkx, checky, obj_tilepurple))
6
    thistile = 3;
7
if (instance_position(checkx, checky, obj_tileyellow))
8
    thistile = 4;
9
if (instance_position(checkx, checky, obj_tileorange))
10
    thistile = 5;
11
if (instance_position(checkx, checky, obj_tileblue))
12
    thistile = 6;
13
if (instance_position(checkx, checky, obj_tilegreen))
14
    thistile = 7;
15
tileid = collision_point(checkx, checky, obj_tileguytileparent, 0, 1);