Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_green_light_Step_0

(view raw script w/o annotations or w/e)
1
timer++;
2
if (timer == 7)
3
    instance_destroy();
4
if (faster == 0)
5
{
6
    if (timer < 3)
7
        image_alpha += 0.1;
8
    if (timer >= 3)
9
        image_alpha -= 0.1;
10
}
11
else
12
{
13
    if (timer < 2)
14
        image_alpha += 0.2;
15
    if (timer >= 2)
16
        image_alpha -= 0.2;
17
}