|
1
|
timer++;
|
|
2
|
if (timer >= acthitboxtime)
|
|
3
|
active_hitbox = true;
|
|
4
|
if (timer == 160 || x > board_tilex(13) || x < board_tilex(0) || y > board_tiley(9) || y < board_tiley(0) || obj_board_camera.con != 0)
|
|
5
|
instance_destroy();
|
|
6
|
if (place_meeting(x, y, obj_board_grayregion))
|
|
7
|
{
|
|
8
|
red = merge_color(red, #D2D2D2, 0.8);
|
|
9
|
yellow = merge_color(yellow, #D2D2D2, 0.8);
|
|
10
|
active_hitbox = false;
|
|
11
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (id, round(speed / 8) + 1);
|
|
12
|
}
|
|
13
|
if (i_ex(obj_board_deathevent))
|
|
14
|
instance_destroy();
|