Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_scr_pos_to_tile

(view raw script w/o annotations or w/e)
1
function 
scr_pos_to_tile
scr_pos_to_tile

function
scr_pos_to_tile(arg0, arg1, arg2, arg3 = 40)
{ arg1 = floor_to_multiple(arg1, 40); arg2 = floor_to_multiple(arg2, 40); arg0 = layer_tilemap_get_id(arg0); return tilemap_get(arg0, arg1, arg2); }
(arg0, arg1, arg2, arg3 = 40)
2
{
3
    arg1 = floor_to_multiple(arg1, 40);
4
    arg2 = floor_to_multiple(arg2, 40);
5
    arg0 = layer_tilemap_get_id(arg0);
6
    return tilemap_get(arg0, arg1, arg2);
7
}