Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_saucer_ufo_bullet_Step_0

(view raw script w/o annotations or w/e)
1
if (explosiontype == 0)
2
{
3
    if (image_xscale < 4)
4
        image_xscale += 0.1;
5
}
6
if (explosiontype == 1)
7
{
8
    if (image_xscale < 2)
9
        image_xscale += 0.05;
10
}
11
timer++;
12
if (timer > 150)
13
    active = 0;
14
if (active == 0)
15
{
16
    if (image_alpha > 0.1)
17
        image_alpha *= 0.7;
18
    else
19
        alarm[0] = 1;
20
}
21
friction -= 0.025;
22
speed = clamp(speed, -8, 8);