Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dance_collider_Step_0

(view raw script w/o annotations or w/e)
1
if place_meeting(x, y, obj_pl)
2
{
3
    if (obj_pl.state == gml_Script_scr_normal_state && obj_pl.DEBUG_DANCE == false)
4
    {
5
        if ((global.right_key + global.left_key + global.up_key + global.down_key) == 0)
6
            dance_timer--
7
        if (dance_timer <= 0)
8
        {
9
            dance_timer = dance_timer_max
10
            obj_pl.DEBUG_DANCE = true
11
        }
12
    }
13
}
14
else
15
    dance_timer = dance_timer_max