Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_growtanglebellshake_Create_0

(view raw script w/o annotations or w/e)
1
with (obj_growtanglebellshake)
2
{
3
    if (id != other.id)
4
        visible = false;
5
    else
6
        visible = true;
7
}
8
image_speed = 0;
9
image_blend = merge_color(c_green, c_lime, 0.5);
10
shake = 90;
11
shake_dir = 90;
12
shake_speed = 75;
13
splash_x = 0;
14
splash_y = 0;
15
splash_alpha = 1;
16
splash_size = 16;
17
life_time = 0;
18
bullet_speed = 2.8 - (clamp(
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() - 1, 0, 2) * 0.6);
19
if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() != 2)
20
{
21
    bullet_dir_add = 42;
22
    bullet_dir = bullet_dir_add * (-0.5 + random(1));
23
    bullet_number = 4;
24
}
25
else
26
{
27
    bullet_dir_add = 48;
28
    bullet_dir = bullet_dir_add * (-0.5 + random(1));
29
    bullet_number = 3;
30
}
31
surface_effect = -1;