Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_border_controller_Step_1

(view raw script w/o annotations or w/e)
1
if (_border_image != _border_image_temp)
2
    exit;
3
if (overlay_alpha != overlay_alpha_target)
4
{
5
    overlay_alpha += overlay_fade_speed;
6
    if (overlay_alpha_target == 0)
7
    {
8
        if (overlay_alpha <= 0)
9
            overlay_alpha = overlay_alpha_target;
10
    }
11
    else if (overlay_alpha_target == 1)
12
    {
13
        if (overlay_alpha >= 1)
14
            overlay_alpha = overlay_alpha_target;
15
    }
16
}