Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sprite_hunter_Step_0

(view raw script w/o annotations or w/e)
1
if (scr_debug
scr_debug

function scr_debug() { return 0; }
() && keyboard_check_pressed(vk_f11) && spriteID != -4)
2
{
3
    otherfound = false;
4
    scr_debug_print("searching for objects that use " + string(sprite_get_name(spriteID)) + ":");
5
    with (all)
6
    {
7
        if (sprite_index == other.spriteID)
8
        {
9
            scr_debug_print(object_get_name(object_index));
10
            other.otherfound = true;
11
        }
12
    }
13
    if (!other.otherfound)
14
        scr_debug_print("");
15
}