Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_combo_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
image_alpha = 1;
3
if (!instance_exists(obj_heart))
4
    instance_destroy();
5
wall_destroy = 0;
6
destroyonhit = 0;
7
active = false;
8
action = 0;
9
timer = 0;
10
scale = 0;
11
circle_scale = 0;
12
circle_speed = 0;
13
circle_alpha = 1;
14
rot_speed = 4;
15
rot_speed2 = rot_speed;
16
counter = 0;
17
cooldown = 0;
18
flash = true;
19
alpha = 1;
20
dot = 0.01;
21
hp_max = 15;
22
hp = hp_max;
23
fade = 0;
24
spd = 0;
25
attack_timer = 30;
26
spin_timer = 45;
27
spin_speed = 2;
28
side = 0;
29
lastside = choose(1, -1);
30
phase = 0;
31
xs = 1;
32
ys = 1;
33
playsound = 0;
34
if (global.mike_skip)
35
{
36
    phase = 2;
37
    hp = 1;
38
}