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
        opacity += 0.05
14
    else
15
    {
16
        instance_create_depth(0, 0, (depth - 1), obj_tumble_generator)
17
        fade_in = 2
18
    }
19
}
20
else if (fade_in == 2)
21
    opacity = (1 + (sin(current_time / 1000))) * 0.3 + 0.4