|
1
|
if (is_animated)
|
|
2
|
sign_anim += 0.2;
|
|
3
|
if (banner_drop)
|
|
4
|
{
|
|
5
|
banner_drop = false;
|
|
6
|
scr_lerp_var_instance(id, "banner_y_pos", banner_y_pos, 2, 18, 2, "out");
|
|
7
|
}
|
|
8
|
if (sign_drop)
|
|
9
|
{
|
|
10
|
sign_drop = false;
|
|
11
|
scr_lerp_var_instance(id, "sign_y_pos", sign_y_pos, 60, 18, -3, "out");
|
|
12
|
}
|
|
13
|
if (gray_mode)
|
|
14
|
{
|
|
15
|
if (normal_mode)
|
|
16
|
normal_mode = false;
|
|
17
|
banner_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (banner_alpha, 0, 0.02);
|
|
18
|
banner_dark_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (banner_dark_alpha, 1, 0.02);
|
|
19
|
banner_gray_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (banner_gray_alpha, 0.5, 0.02);
|
|
20
|
sign_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (sign_alpha, 0, 0.02);
|
|
21
|
sign_gray_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (sign_gray_alpha, 0.5, 0.02);
|
|
22
|
killed_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (killed_alpha, 1, 0.02);
|
|
23
|
draw_sprite_ext(scr_84_get_spritescr_84_get_sprite
function scr_84_get_sprite(arg0)
{
return ds_map_find_value(global.chemg_sprite_map, arg0);
} ("spr_dw_tv_mysterySign"), 0, banner_x_pos, banner_y_pos, 2, 2, 0, c_white, banner_alpha);
|
|
24
|
draw_sprite_ext(scr_84_get_spritescr_84_get_sprite
function scr_84_get_sprite(arg0)
{
return ds_map_find_value(global.chemg_sprite_map, arg0);
} ("spr_dw_tv_mysterySign"), 0, banner_x_pos, banner_y_pos, 2, 2, 0, c_black, banner_dark_alpha);
|
|
25
|
draw_sprite_ext(scr_84_get_spritescr_84_get_sprite
function scr_84_get_sprite(arg0)
{
return ds_map_find_value(global.chemg_sprite_map, arg0);
} ("spr_dw_tv_mysterySign_gray"), 0, banner_x_pos, banner_y_pos, 2, 2, 0, c_white, banner_gray_alpha);
|
|
26
|
draw_sprite_ext(spr_dw_tv_tvtimeSign_half, sign_anim, sign_x_pos, sign_y_pos, 2, 2, 0, c_white, sign_alpha);
|
|
27
|
draw_sprite_ext(spr_dw_tv_tvtimeSign_half, sign_anim, sign_x_pos, sign_y_pos, 2, 2, 0, c_black, banner_dark_alpha);
|
|
28
|
draw_sprite_ext(spr_dw_tv_tvtimeSign_off_gray, 0, sign_x_pos, sign_y_pos, 2, 2, 0, c_white, sign_gray_alpha);
|
|
29
|
draw_sprite_ext(scr_84_get_spritescr_84_get_sprite
function scr_84_get_sprite(arg0)
{
return ds_map_find_value(global.chemg_sprite_map, arg0);
} ("spr_dw_tv_mysertySign_killed"), 0, 330, 120, 2, 2, 0, c_white, killed_alpha);
|
|
30
|
}
|
|
31
|
if (recovery_mode)
|
|
32
|
{
|
|
33
|
if (gray_mode)
|
|
34
|
gray_mode = false;
|
|
35
|
banner_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (banner_alpha, 1, 0.2);
|
|
36
|
banner_dark_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (banner_dark_alpha, 0, 0.2);
|
|
37
|
banner_gray_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (banner_gray_alpha, 0, 0.2);
|
|
38
|
sign_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (sign_alpha, 1, 0.2);
|
|
39
|
sign_gray_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (sign_gray_alpha, 0, 0.2);
|
|
40
|
killed_alpha = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (killed_alpha, 0, 0.2);
|
|
41
|
if (killed_alpha <= 0)
|
|
42
|
normal_mode = true;
|
|
43
|
draw_sprite_ext(scr_84_get_spritescr_84_get_sprite
function scr_84_get_sprite(arg0)
{
return ds_map_find_value(global.chemg_sprite_map, arg0);
} ("spr_dw_tv_mysterySign"), 0, banner_x_pos, banner_y_pos, 2, 2, 0, c_white, banner_alpha);
|
|
44
|
draw_sprite_ext(scr_84_get_spritescr_84_get_sprite
function scr_84_get_sprite(arg0)
{
return ds_map_find_value(global.chemg_sprite_map, arg0);
} ("spr_dw_tv_mysterySign"), 0, banner_x_pos, banner_y_pos, 2, 2, 0, c_black, banner_dark_alpha);
|
|
45
|
draw_sprite_ext(scr_84_get_spritescr_84_get_sprite
function scr_84_get_sprite(arg0)
{
return ds_map_find_value(global.chemg_sprite_map, arg0);
} ("spr_dw_tv_mysterySign_gray"), 0, banner_x_pos, banner_y_pos, 2, 2, 0, c_white, banner_gray_alpha);
|
|
46
|
draw_sprite_ext(spr_dw_tv_tvtimeSign_half, sign_anim, sign_x_pos, sign_y_pos, 2, 2, 0, c_white, sign_alpha);
|
|
47
|
draw_sprite_ext(spr_dw_tv_tvtimeSign_half, sign_anim, sign_x_pos, sign_y_pos, 2, 2, 0, c_white, banner_dark_alpha);
|
|
48
|
draw_sprite_ext(spr_dw_tv_tvtimeSign_off_gray, 0, sign_x_pos, sign_y_pos, 2, 2, 0, c_white, sign_gray_alpha);
|
|
49
|
draw_sprite_ext(scr_84_get_spritescr_84_get_sprite
function scr_84_get_sprite(arg0)
{
return ds_map_find_value(global.chemg_sprite_map, arg0);
} ("spr_dw_tv_mysertySign_killed"), 0, 330, 120, 2, 2, 0, c_white, killed_alpha);
|
|
50
|
}
|
|
51
|
if (normal_mode)
|
|
52
|
{
|
|
53
|
if (gray_mode)
|
|
54
|
gray_mode = false;
|
|
55
|
if (recovery_mode)
|
|
56
|
recovery_mode = false;
|
|
57
|
draw_sprite_ext(scr_84_get_spritescr_84_get_sprite
function scr_84_get_sprite(arg0)
{
return ds_map_find_value(global.chemg_sprite_map, arg0);
} ("spr_dw_tv_mysterySign"), 0, banner_x_pos, banner_y_pos, 2, 2, 0, c_white, sign_alpha);
|
|
58
|
draw_sprite_ext(spr_dw_tv_tvtimeSign_half, sign_anim, sign_x_pos, sign_y_pos, 2, 2, 0, c_white, sign_alpha);
|
|
59
|
}
|