Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_sme_yellow_rhythm_note_Step_1

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (image_alpha_val < 1)
4
{
5
    image_alpha_val += fade_in_speed
6
    if (image_alpha_val > 1)
7
        image_alpha_val = 1
8
}
9
y += note_speed
10
if (y >= end_boundary)
11
{
12
    if (box.sc_dcurrent == 1)
13
        instance_create(damage_pos_x, damage_pos_y, obj_sme_yellow_rhythm_damage)
14
    instance_destroy()
15
}
16
if (in_hint_boundary == false && (y + note_speed) >= (obj_sme_yellow_rhythm_selection.y - obj_sme_yellow_rhythm_selection.hit_extend_neg * note_speed))
17
    in_hint_boundary = true
18
if (in_hint_boundary == true)
19
{
20
    if ((y + note_speed) < (obj_sme_yellow_rhythm_selection.y - 10))
21
        hint_marker_alpha = 1
22
    else
23
        hint_marker_alpha -= 0.25
24
}