Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_social_media_attack_fade_heroes_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    with (obj_heroparent)
4
        image_alpha -= 0.1;
5
    with (obj_queen_enemy)
6
        image_alpha -= 0.1;
7
    if (obj_heroparent.image_alpha < 0)
8
        con = 1;
9
}
10
if (con == 1 && global.turntimer < 2)
11
    con = 2;
12
if (con == 2)
13
{
14
    with (obj_heroparent)
15
        image_alpha += 0.1;
16
    with (obj_queen_enemy)
17
        image_alpha += 0.1;
18
    if (obj_heroparent.image_alpha > 1)
19
        instance_destroy();
20
}