Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_combo_bounce_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 = true;
8
aim = 0;
9
action = 0;
10
timer = 0;
11
tail = 0;
12
xscale = 2;
13
yscale = 2;
14
sc = 1;
15
shake = 0;
16
xx = x;
17
yy = y;
18
scale = 0;
19
angle = 0;
20
circle_scale = 0;
21
circle_speed = 0;
22
circle_alpha = 1;
23
rot_speed = 4;
24
rot_speed2 = rot_speed;
25
counter = 0;
26
cooldown = 0;
27
flash = true;
28
attack_timer = 30;
29
alpha = 1;
30
dot = 0.0005;
31
hp_max = 30;
32
hp = hp_max;
33
fade = 0;
34
bounce = 0;
35
maxspeed = 5;
36
var i = 0;
37
var b = 40;
38
bb[i] = instance_create(camerax() - (camerawidth() / 2), cameray() - 800 - b, obj_mike_boundary);
39
bb[i].image_xscale = 32;
40
bb[i++].image_yscale = 20;
41
bb[i] = instance_create(camerax() - (camerawidth() / 2), cameray() + cameraheight() + 40 + b, obj_mike_boundary);
42
bb[i].image_xscale = 32;
43
bb[i++].image_yscale = 20;
44
bb[i] = instance_create(camerax() - 800 - b, cameray() - 200, obj_mike_boundary);
45
bb[i].image_yscale = 20;
46
bb[i++].image_xscale = 20;
47
bb[i] = instance_create(camerax() + camerawidth() + b, cameray() - 200, obj_mike_boundary);
48
bb[i].image_yscale = 20;
49
bb[i++].image_xscale = 20;