Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_magicalglass_Step_0

(view raw script w/o annotations or w/e)
1
var active = 0;
2
if (place_meeting(x, y, obj_caterpillarchara))
3
    active = 1;
4
else if (place_meeting(x, y, obj_mainchara))
5
    active = true;
6
if (room == room_dw_church_darkmaze)
7
{
8
    if (i_ex(obj_dw_church_darkmaze.germark))
9
    {
10
        if (place_meeting(x, y, obj_dw_church_darkmaze.germark))
11
            active = true;
12
    }
13
}
14
var alftime = 0.125;
15
if (instance_exists(obj_dw_church_ripplepuzzle_postgers))
16
    alftime = 0.5;
17
if (active)
18
    image_alpha = lerp(image_alpha, 1, alftime);
19
else
20
    image_alpha = lerp(image_alpha, -0.125, 0.05);