Deltarune script viewer

← back to main script listing

gml_Object_obj_tutorial_bullet_Step_0

(view raw script w/o annotations or w/e)
1
image_angle = direction;
2
if (y > (cameray() + 220) || x < ((camerax() + 320) - 120) || x > (camerax() + 320 + 120))
3
    fade = true;
4
if (fade == true)
5
{
6
    image_alpha *= 0.6;
7
    if (image_alpha < 0.01)
8
        instance_destroy();
9
}
10
if (ticked == 0)
11
{
12
    if (distance_to_object(obj_tutorial_puzboy) < 20 && y > 205)
13
    {
14
        ticked = 1;
15
        with (obj_tutorial_puzboy)
16
            tickAlpha = 1;
17
        snd_play(snd_graze);
18
    }
19
}