Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ghosthouse_jackolantern_merciful_Create_0

(view raw script w/o annotations or w/e)
1
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
2
damage = 0;
3
image_alpha = 1;
4
if (!instance_exists(obj_heart))
5
    instance_destroy();
6
wall_destroy = 0;
7
destroyonhit = false;
8
mask_index = spr_no_mask;
9
ticks = 0;
10
completed_ticks = 0;
11
feared = false;
12
run_threshold = 5;
13
pitch = 1;
14
prog = 0;
15
targ_x = -1;
16
targ_y = -1;
17
last_tx = -1;
18
last_ty = -1;
19
mercy_cooldown = 0;
20
total_ticks = 0;
21
reset_timer = 0;
22
tick_chain = 0;
23
mercy = 0;
24
fleetype = 1;
25
accelmultiplier = 1;
26
light_distance = obj_lightsource_heartlight.radius + 15;
27
shake_power = 2;
28
biggerrad = obj_lightsource_heartlight.biggerrad;
29
face_timer = 0;
30
quick_start = false;
31
timer = 0;
32
scare_con = 0;
33
burst_damage = false;
34
screamsound = -4;
35
sizer = 0;
36
size = 1;
37
shakex = 0;
38
shakey = 0;
39
bright = false;
40
jumptimer = 0;
41
jumpthreshold = 30;
42
screamcon = 0;
43
shrink = 0;
44
siner = 0;
45
size_cooldown = 0;
46
size_siner = 0;
47
fader = -4;
48
end_con = 0;
49
init = false;
50
size_offset = 1;
51
battle_end = 190;
52
last_distance = 0;
53
funny = false;
54
sx[0] = 0;
55
sx[1] = 0;
56
sx[2] = 0;
57
sx[3] = 0;
58
sy[0] = 0;
59
sy[1] = 0;
60
sy[2] = 0;
61
sy[3] = 0;
62
with (obj_jackenstein_enemy)
63
{
64
    if (spooked)
65
        other.quick_start = true;
66
}
67
first_turn = !quick_start;
68
head_sprite = spr_guywhoappearswhenyouhavetakentoolongbutgotanastysurprise;
69
mouth_sprite = 1809;