Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_enemy_flower_bullet_Step_0

(view raw script w/o annotations or w/e)
1
lifetimer++;
2
timer++;
3
if (con == 0)
4
{
5
    image_alpha = lerp(image_alpha, 1, 0.5);
6
    if (image_alpha == 1)
7
    {
8
        con = 1;
9
        timer = 0;
10
    }
11
}
12
if (con == 1)
13
{
14
    if (timer < 10 && i_ex(obj_heart))
15
        direction = point_direction(x, y, obj_heart.x, obj_heart.y);
16
    speed = lerp(speed, 6, 0.25);
17
}
18
spinspeed = lerp(spinspeed, 8, 0.125);
19
if (spinspeed > 0)
20
{
21
    if (side == 1)
22
        image_angle += spinspeed;
23
    else
24
        image_angle -= spinspeed;
25
}
26
if (active == 0)
27
{
28
    image_alpha = lerp(image_alpha, 0, 0.25);
29
    if (image_alpha == 0)
30
        instance_destroy();
31
}