Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_phase_2_fight_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var player_soul = obj_heart_battle_fighting_parent
4
button_pressed = false
5
if (fade_in == false)
6
{
7
    image_alpha = lerp(image_alpha, 0, 0.1)
8
    if (image_alpha < 0.01)
9
        image_alpha = 0
10
}
11
else if (fade_in == true)
12
{
13
    image_alpha = lerp(image_alpha, 1, 0.1)
14
    if (image_alpha > 0.99)
15
    {
16
        image_alpha = 1
17
        if place_meeting(x, y, player_soul)
18
        {
19
            if keyboard_multicheck_pressed(0)
20
            {
21
                audio_play_sound(snd_confirm, 1, 0)
22
                button_pressed = true
23
                image_index = 0
24
                return;
25
            }
26
            image_index = 1
27
        }
28
        else
29
            image_index = 0
30
    }
31
}