Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_enemy_bubble_Step_0

(view raw script w/o annotations or w/e)
1
if (place_meeting(x, y, obj_board_swordhitbox) || place_meeting(x, y, obj_board_enemy_deer_ice_spell))
2
{
3
    instance_create(x, y, obj_board_enemydefeatsplash);
4
    global.flag[1255 sword_route_kills]++;
5
    snd_stop(snd_board_damage);
6
    snd_play(snd_board_damage);
7
    instance_destroy();
8
    exit;
9
}
10
timer++;
11
if (timer == 5)
12
    active_hitbox = true;
13
if (timer == 160)
14
    instance_destroy();
15
updatetimer++;
16
if (updatetimer == 3)
17
    updatetimer = 0;
18
else
19
    exit;
20
for (i = 5; i > 0; i -= 1)
21
{
22
    remx[i] = remx[i - 1];
23
    remy[i] = remy[i - 1];
24
}
25
remx[0] = x;
26
remy[0] = y;
27
direction = point_direction(x, y, obj_board_controller.kris_object.x + 16, obj_board_controller.kris_object.y + 16);
28
x += lengthdir_x(spd, direction);
29
y += lengthdir_y(spd, direction);