|
1
|
if (kris == 0)
|
|
2
|
{
|
|
3
|
with (obj_mainchara_board)
|
|
4
|
other.kris = id;
|
|
5
|
}
|
|
6
|
if (con == 0)
|
|
7
|
{
|
|
8
|
if (global.plot < 180)
|
|
9
|
global.plot = 180;
|
|
10
|
markerbar = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (board_tilex(0), board_tiley(-1), spr_pxwhite, 0, 100000, 32);
|
|
11
|
markerbar.image_xscale = 640;
|
|
12
|
markerbar.image_blend = c_black;
|
|
13
|
obj_gameshow_swordroute.drawui = false;
|
|
14
|
global.interact = 1;
|
|
15
|
obj_mainchara_board.facing = 0;
|
|
16
|
obj_mainchara_board.sword = true;
|
|
17
|
obj_mainchara_board.swordlv = 3;
|
|
18
|
if (room == room_board_preshadowmantle_repeat)
|
|
19
|
{
|
|
20
|
obj_mainchara_board.sword = true;
|
|
21
|
obj_mainchara_board.swordlv = 5;
|
|
22
|
}
|
|
23
|
if (room == room_board_dungeon_3)
|
|
24
|
{
|
|
25
|
with (obj_mainchara_board)
|
|
26
|
setxy_board(1072, 1456);
|
|
27
|
}
|
|
28
|
timer = 0;
|
|
29
|
con = 1;
|
|
30
|
}
|
|
31
|
var _screencolor = #7C344F;
|
|
32
|
if (room == room_board_preshadowmantle_repeat)
|
|
33
|
_screencolor = c_black;
|
|
34
|
if (con == 1)
|
|
35
|
{
|
|
36
|
timer++;
|
|
37
|
if (timer == 1)
|
|
38
|
{
|
|
39
|
var steps = 8;
|
|
40
|
var delay = 15;
|
|
41
|
for (var i = 0; i < steps; i++)
|
|
42
|
{
|
|
43
|
with (obj_gameshow_swordroute)
|
|
44
|
scr_delay_var("screencolor", merge_color(c_black, _screencolor, i / steps), delay * (i - 1));
|
|
45
|
}
|
|
46
|
}
|
|
47
|
if (timer == 60)
|
|
48
|
{
|
|
49
|
transition.active = true;
|
|
50
|
timer = 0;
|
|
51
|
con = 2;
|
|
52
|
}
|
|
53
|
}
|
|
54
|
if (con == 2)
|
|
55
|
{
|
|
56
|
if (transition.completed == true)
|
|
57
|
{
|
|
58
|
if (room != room_board_preshadowmantle_repeat)
|
|
59
|
{
|
|
60
|
global.currentsong[0] = snd_init("root_8bit.ogg");
|
|
61
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
|
|
62
|
}
|
|
63
|
global.interact = 0;
|
|
64
|
obj_mainchara_board.facing = 0;
|
|
65
|
obj_gameshow_swordroute.drawui = true;
|
|
66
|
obj_gameshow_swordroute.skip = false;
|
|
67
|
safe_delete(markerbar);
|
|
68
|
con++;
|
|
69
|
}
|
|
70
|
}
|
|
71
|
if (con == 10)
|
|
72
|
{
|
|
73
|
global.currentsong[0] = snd_init("root_8bit.ogg");
|
|
74
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
|
|
75
|
fader = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (board_tilex(0), board_tiley(0), spr_pxwhite, 0, 100000, 640);
|
|
76
|
fader.image_blend = c_black;
|
|
77
|
with (fader)
|
|
78
|
{
|
|
79
|
for (var i = 0; i < 6; i++)
|
|
80
|
scr_delay_var("image_alpha", 1 - (i / 5), 10 * i);
|
|
81
|
}
|
|
82
|
with (obj_gameshow_swordroute)
|
|
83
|
{
|
|
84
|
for (var i = 0; i < 6; i++)
|
|
85
|
scr_delay_var("screencolor", merge_color(c_black, #7C344F, i / 5), 10 * i);
|
|
86
|
}
|
|
87
|
with (obj_mainchara_board)
|
|
88
|
{
|
|
89
|
facing = 2;
|
|
90
|
canfreemove = false;
|
|
91
|
scr_delay_var("canfreemove", true, 50);
|
|
92
|
}
|
|
93
|
con++;
|
|
94
|
}
|
|
95
|
if (con == 420)
|
|
96
|
{
|
|
97
|
scr_board_sword_repeatscr_board_sword_repeat
function scr_board_sword_repeat()
{
timer++;
if (timer == 1)
{
with (obj_board_squaretransition)
instance_destroy();
obj_mainchara_board.facing = 2;
global.interact = 1;
with (instance_create(board_tilex(0), board_tiley(-1), obj_puzzlecloset_tvturnon))
{
width = 384;
height = 288;
}
}
if (timer == 15)
{
if (room == room_board_1_sword || room == room_board_2_sword || room == room_board_3_sword)
scr_musicer("board_ocean.ogg", 1, undefined, undefined, 60);
with (obj_puzzlecloset_tvturnon)
turnon = true;
snd = snd_play_x(snd_tv_poweron, 0.4, 0.5);
snd_volume(snd, 0, 15);
snd = snd_play_x(snd_tv_poweron, 0.6, 2);
snd_volume(snd, 0, 15);
}
if (timer == 18)
{
with (obj_board_screenColorChanger)
{
if (x >= 128 && x <= 512 && y >= 64 && y <= 320)
{
init = 0;
force = 8;
active = 1;
roomstart = 60;
}
}
}
if (timer < 30)
global.interact = 1;
if (timer == 30)
{
global.swordboardeath = 0;
global.interact = 0;
con++;
}
} ();
|
|
98
|
if (timer == 1)
|
|
99
|
{
|
|
100
|
if (room == room_board_dungeon_3)
|
|
101
|
{
|
|
102
|
with (obj_mainchara_board)
|
|
103
|
setxy_board(1072, 1552);
|
|
104
|
}
|
|
105
|
}
|
|
106
|
if (timer == 20)
|
|
107
|
{
|
|
108
|
global.currentsong[0] = snd_init("root_8bit.ogg");
|
|
109
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
|
|
110
|
}
|
|
111
|
}
|