Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queen_search_bdog_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
destroyonhit = false;
4
image_speed = 0;
5
impact = 0;
6
direction = point_direction(obj_growtangle.x, obj_growtangle.y, x, y);
7
bufferstate = 0;
8
loading = 45;
9
parentwindow = -4;
10
image_index = 0;
11
flip = (x < obj_growtangle.x) ? -1 : 1;
12
birthday = 0;
13
lastx = x;
14
lasty = y;
15
lastangle = image_angle;
16
hatoffdir = point_direction(0, 0, -20, -18);
17
hatoffsetx = -20;
18
hatoffsety = -18;
19
animtimer = 0;
20
for (i = 0; i < 36; i++)
21
{
22
    d = instance_create(x, y, obj_confetti);
23
    d.direction = (i * 10) + random(10);
24
    d.depth = depth + choose(-1, 1);
25
}