Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_musical_path_bullet_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 + 48, y - 48, 100);
10
path_add_point(path, x + 112, y - 48, 100);
11
path_add_point(path, x + 160, y, 100);
12
trajectory = instance_create(x, y, obj_musical_path_trajectory);
13
trajectory.parent = id;
14
with (trajectory)
15
    path_start(parent.path, 10, path_action_stop, false);
16
circle1alpha = 0;
17
circle1radius = 31;
18
circle1width = 2;
19
circle1color = c_lime;
20
circle2alpha = 0;
21
circle2radius = 75;
22
circle2width = 4;
23
depth = obj_heart.depth + 1;