Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_holywater_bubbles_controller_Step_0

(view raw script w/o annotations or w/e)
1
if (global.turntimer < 1)
2
{
3
    instance_destroy();
4
    exit;
5
}
6
if (!i_ex(obj_heart))
7
{
8
    instance_destroy();
9
    exit;
10
}
11
timer++;
12
if (timer == 20)
13
    instance_destroy();
14
if (timer == 9 || timer == 12)
15
{
16
    if (obj_heart.press_u || obj_heart.press_d || obj_heart.press_l || obj_heart.press_r)
17
    {
18
        bubble = instance_create(obj_heart.x + random(20), obj_heart.y + random(20), obj_holywater_bubbles);
19
        bubble.direction = random(360);
20
        bubble.speed = 1;
21
        bubble.friction = 0.1;
22
        bubble.image_blend = image_blend;
23
    }
24
}