Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_musical_path_bullet2_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
timer = 0;
3
con = 0;
4
headalpha = 0;
5
path = path_add();
6
path_set_kind(path, 1);
7
path_set_closed(path, false);
8
path_add_point(path, x, y, 100);
9
path_add_point(path, x - 32, y - 32, 100);
10
path_add_point(path, x, y - 64, 100);
11
path_add_point(path, x + 32, y - 96, 100);
12
path_add_point(path, x, y - 128, 100);
13
trajectory = instance_create(x, y, obj_musical_path_trajectory);
14
trajectory.parent = id;
15
with (trajectory)
16
    path_start(parent.path, 10, path_action_stop, false);
17
circle1alpha = 0;
18
circle1radius = 31;
19
circle1width = 2;
20
circle1color = c_lime;
21
circle2alpha = 0;
22
circle2radius = 75;
23
circle2width = 4;
24
depth = obj_heart.depth + 1;