Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shutta_photo_nubert_Other_7

(view raw script w/o annotations or w/e)
1
if (sprite_index == spr_npc_nubert_appear)
2
{
3
    sprite_index = spr_npc_nubert;
4
    image_speed = 0;
5
}
6
if (sprite_index == spr_npc_nubert_hide)
7
{
8
    x = camerax() + 150 + irandom(250);
9
    y = cameray() + 30 + irandom(200);
10
    if (con2 == 0)
11
    {
12
        x = camerax() + 150 + irandom(250);
13
        y = cameray() + irandom(100);
14
        con2 = 1;
15
    }
16
    else
17
    {
18
        x = camerax() + 150 + irandom(250);
19
        y = cameray() + 150 + irandom(50);
20
        con2 = 0;
21
    }
22
    sprite_index = spr_npc_nubert_appear;
23
    image_index = 0;
24
    image_speed = 0.5;
25
}