Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_background_starlo_battle_yellow_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var opacity_target = ((1 + sin(current_time / 1000)) * 0.3) + 0.4;
4
if (instance_exists(obj_starlo_dead))
5
{
6
    instance_destroy(obj_tumble_generator);
7
    if (opacity > 0)
8
        opacity -= 0.03;
9
}
10
if (fade_in == 1)
11
{
12
    if (opacity < opacity_target)
13
    {
14
        opacity += 0.05;
15
    }
16
    else
17
    {
18
        instance_create_depth(0, 0, depth - 1, obj_tumble_generator);
19
        fade_in = 2;
20
    }
21
}
22
else if (fade_in == 2)
23
{
24
    opacity = ((1 + sin(current_time / 1000)) * 0.3) + 0.4;
25
}