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); |