Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj____Create_0

(view raw script w/o annotations or w/e)
1
image_speed = 0;
2
image_xscale = 2;
3
image_yscale = 2;
4
state = "init";
5
timer = 0;
6
hurttimer = 0;
7
alivetimer = 0;
8
movecon = 0;
9
movetimer = 0;
10
movedir = 1;
11
movementstyle = 0;
12
hitdir = -1;
13
damage = 2;
14
spd = 5;
15
startspd = 5 + irandom(2);
16
spdtimer = 0;
17
active_hitbox = false;
18
destroyonhit = false;
19
hit = 0;
20
path = path_add();
21
is_moving = false;
22
is_moving_timer = 0;
23
move_type = 0;
24
damagecon = 0;
25
damagetimer = 0;
26
scr_depth_board
scr_depth_board

function
scr_depth_board()
{ depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); } function scr_board_depth() {
scr_depth_board();
}
();
27
damage_hitbox = instance_create(x + 16, y + 16, obj_board_enemy_contact_hitbox);
28
damage_hitbox.parentid = id;
29
laughindex = 0;
30
cantfindpath = false;
31
xprev2 = 0;
32
yprev2 = 0;