Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_cat_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
homing = true;
7
max_speed = 5;
8
image_alpha = 1;
9
scale = 0;
10
xx = x;
11
yy = y;
12
image_xscale = 0;
13
image_yscale = image_xscale;
14
image_speed = 1;
15
wait = 0;
16
wait_time = 150;
17
action = 0;
18
active = false;
19
side = 1;
20
flip = 0;
21
mydist = 40;
22
alarm[0]
 = 1;
gml_Object_obj_mike_cat_Alarm_0.gml

if (x < (camerax() + (camerawidth() / 2))) side = 1; else side = -1;