|
1
|
scr_board_populatevarsscr_board_populatevars
function scr_board_populatevars()
{
if (!variable_instance_exists(id, "kris"))
kris = 0;
if (!variable_instance_exists(id, "susie"))
susie = 0;
if (!variable_instance_exists(id, "ralsei"))
ralsei = 0;
if (kris == 0)
{
with (obj_mainchara_board)
{
if (name == "kris")
other.kris = id;
}
}
if (ralsei == 0)
{
with (obj_mainchara_board)
{
if (name == "ralsei")
other.ralsei = id;
}
}
if (susie == 0)
{
with (obj_mainchara_board)
{
if (name == "susie")
other.susie = id;
}
}
} ();
|
|
2
|
scr_gameshow_populatevarsscr_gameshow_populatevars
function scr_gameshow_populatevars()
{
if (!variable_instance_exists(id, "kr_real"))
kr_real = 0;
if (!variable_instance_exists(id, "su_real"))
su_real = 0;
if (!variable_instance_exists(id, "ra_real"))
ra_real = 0;
if (!variable_instance_exists(id, "tenna"))
tenna = 0;
if (kr_real == 0)
{
with (obj_mainchara)
other.kr_real = id;
}
if (su_real == 0)
{
with (obj_caterpillarchara)
{
if (name == "susie")
other.su_real = id;
}
}
if (ra_real == 0)
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
other.ra_real = id;
}
}
if (tenna == 0)
{
with (obj_actor_tenna)
other.tenna = id;
}
} ();
|
|
3
|
if (puz == 0)
|
|
4
|
{
|
|
5
|
with (obj_board_event_bridgepuzzle)
|
|
6
|
{
|
|
7
|
if (puzzleid == 1)
|
|
8
|
other.puz = id;
|
|
9
|
}
|
|
10
|
}
|
|
11
|
solved = puz.solved;
|
|
12
|
if (active == 1)
|
|
13
|
{
|
|
14
|
if (con == 0 && obj_board_camera.con == 0)
|
|
15
|
{
|
|
16
|
with (obj_mainchara_board)
|
|
17
|
controlled = false;
|
|
18
|
susie.controlled = true;
|
|
19
|
ralsei.follow = false;
|
|
20
|
kris.camera = true;
|
|
21
|
con = 1;
|
|
22
|
timer = 0;
|
|
23
|
}
|
|
24
|
if (con == 1)
|
|
25
|
{
|
|
26
|
timer++;
|
|
27
|
if (timer == 1)
|
|
28
|
scr_pathfind_to_pointscr_pathfind_to_point
function scr_pathfind_to_point(arg0, arg1, arg2)
{
var __destx = arg1 + 16;
var __desty = arg2 + 16;
if (arg1 < 12 && arg2 < 8)
{
__destx = 128 + (32 * arg1) + 16;
__desty = 64 + (32 * arg2) + 16;
}
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
is_moving_timer = 0;
is_moving = true;
path_target_x = __destx;
path_target_y = __desty;
follow = false;
if (argument_count == 4)
{
if (argument3 != -1)
path_end_facing = argument3;
}
if (argument_count == 5)
{
if (argument4 != -1)
allow_diagonals = argument4;
}
}
}
} ("kris", 9, 4, 2);
|
|
29
|
if (timer == 10)
|
|
30
|
{
|
|
31
|
var ratalk = stringsetloc(Oh! Look, grey blocks!"Oh! Look, grey blocks!", "obj_b2bridgepuzzle2_slash_Step_0_gml_31_0" );
|
|
32
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 80);
|
|
33
|
}
|
|
34
|
if (timer == 90)
|
|
35
|
{
|
|
36
|
var ratalk = stringsetloc(Kris, let's solve this puzzle together!"Kris, let's solve this puzzle together!", "obj_b2bridgepuzzle2_slash_Step_0_gml_36_0" );
|
|
37
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 90);
|
|
38
|
}
|
|
39
|
if (timer == 140)
|
|
40
|
{
|
|
41
|
with (kris)
|
|
42
|
{
|
|
43
|
takephoto = false;
|
|
44
|
canfreemove = false;
|
|
45
|
var playxround = round(x / 32) * 32;
|
|
46
|
var playyround = round(y / 32) * 32;
|
|
47
|
playxround -= ((camwidth / 2) * 32);
|
|
48
|
playyround -= ((camheight / 2) * 32);
|
|
49
|
playxround = round(playxround / 32) * 32;
|
|
50
|
playyround = round(playyround / 32) * 32;
|
|
51
|
mycam = instance_create(playxround, playyround, obj_board_playercamera);
|
|
52
|
mycam.camwidth = camwidth;
|
|
53
|
mycam.camheight = camheight;
|
|
54
|
mycam.controllable = false;
|
|
55
|
}
|
|
56
|
}
|
|
57
|
if (timer == 165)
|
|
58
|
{
|
|
59
|
with (obj_board_playercamera)
|
|
60
|
remoter = true;
|
|
61
|
}
|
|
62
|
if (timer == 175)
|
|
63
|
{
|
|
64
|
with (obj_board_playercamera)
|
|
65
|
remoter = true;
|
|
66
|
}
|
|
67
|
if (timer == 185)
|
|
68
|
{
|
|
69
|
with (obj_board_playercamera)
|
|
70
|
remoteu = true;
|
|
71
|
}
|
|
72
|
if (timer == 195)
|
|
73
|
{
|
|
74
|
with (obj_board_playercamera)
|
|
75
|
remoteu = true;
|
|
76
|
}
|
|
77
|
if (timer == 205)
|
|
78
|
{
|
|
79
|
with (obj_board_playercamera)
|
|
80
|
remoteu = true;
|
|
81
|
}
|
|
82
|
if (timer == 215)
|
|
83
|
{
|
|
84
|
with (obj_board_playercamera)
|
|
85
|
remoteu = true;
|
|
86
|
}
|
|
87
|
if (timer == 245)
|
|
88
|
{
|
|
89
|
with (obj_board_playercamera)
|
|
90
|
event_user(1);
|
|
91
|
}
|
|
92
|
if (timer == 170)
|
|
93
|
{
|
|
94
|
var sutalk = stringsetloc(Cool, I get to do nothing."Cool, I get to do nothing.", "obj_b2bridgepuzzle2_slash_Step_0_gml_69_0" );
|
|
95
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (sutalk, "susie", 60);
|
|
96
|
}
|
|
97
|
if (timer == 190)
|
|
98
|
scr_pathfind_to_pointscr_pathfind_to_point
function scr_pathfind_to_point(arg0, arg1, arg2)
{
var __destx = arg1 + 16;
var __desty = arg2 + 16;
if (arg1 < 12 && arg2 < 8)
{
__destx = 128 + (32 * arg1) + 16;
__desty = 64 + (32 * arg2) + 16;
}
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
is_moving_timer = 0;
is_moving = true;
path_target_x = __destx;
path_target_y = __desty;
follow = false;
if (argument_count == 4)
{
if (argument3 != -1)
path_end_facing = argument3;
}
if (argument_count == 5)
{
if (argument4 != -1)
allow_diagonals = argument4;
}
}
}
} ("ralsei", 10, 3, 0);
|
|
99
|
if (timer == 230)
|
|
100
|
stooleup = true;
|
|
101
|
if (solved == 1)
|
|
102
|
{
|
|
103
|
scr_board_gridresetscr_board_gridreset
function scr_board_gridreset()
{
with (obj_board_controller)
grid_reset = true;
} ();
|
|
104
|
con = 2;
|
|
105
|
timer = 0;
|
|
106
|
}
|
|
107
|
}
|
|
108
|
if (con == 99 && obj_board_camera.con == 0)
|
|
109
|
{
|
|
110
|
con = 100;
|
|
111
|
timer = 0;
|
|
112
|
}
|
|
113
|
}
|
|
114
|
else
|
|
115
|
{
|
|
116
|
}
|
|
117
|
if (con == 2)
|
|
118
|
{
|
|
119
|
timer++;
|
|
120
|
if (timer == 10)
|
|
121
|
{
|
|
122
|
var ratalk = stringsetloc(Hahaha! We did it...!"Hahaha! We did it...!", "obj_b2bridgepuzzle2_slash_Step_0_gml_110_0" );
|
|
123
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 70);
|
|
124
|
kris.facing = 3;
|
|
125
|
}
|
|
126
|
if (timer == 80)
|
|
127
|
{
|
|
128
|
var sutalk = stringsetloc(Heh, finally having fun?"Heh, finally having fun?", "obj_b2bridgepuzzle2_slash_Step_0_gml_116_0" );
|
|
129
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (sutalk, "susie", 60);
|
|
130
|
}
|
|
131
|
if (timer == 140)
|
|
132
|
{
|
|
133
|
var ratalk = stringsetloc(H-huh? Well, um..."H-huh? Well, um...", "obj_b2bridgepuzzle2_slash_Step_0_gml_121_0" );
|
|
134
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 60);
|
|
135
|
}
|
|
136
|
if (timer == 150)
|
|
137
|
scr_pathfind_to_pointscr_pathfind_to_point
function scr_pathfind_to_point(arg0, arg1, arg2)
{
var __destx = arg1 + 16;
var __desty = arg2 + 16;
if (arg1 < 12 && arg2 < 8)
{
__destx = 128 + (32 * arg1) + 16;
__desty = 64 + (32 * arg2) + 16;
}
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
is_moving_timer = 0;
is_moving = true;
path_target_x = __destx;
path_target_y = __desty;
follow = false;
if (argument_count == 4)
{
if (argument3 != -1)
path_end_facing = argument3;
}
if (argument_count == 5)
{
if (argument4 != -1)
allow_diagonals = argument4;
}
}
}
} ("kris", 1, 6, 0);
|
|
138
|
if (timer == 200)
|
|
139
|
{
|
|
140
|
var sutalk = stringsetloc(How 'bout we stay as these characters..."How 'bout we stay as these characters...", "obj_b2bridgepuzzle2_slash_Step_0_gml_130_0" );
|
|
141
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (sutalk, "susie", 2, 60);
|
|
142
|
}
|
|
143
|
if (timer == 260)
|
|
144
|
{
|
|
145
|
var sutalk = stringsetloc(Until there's something cool to throw?"Until there's something cool to throw?", "obj_b2bridgepuzzle2_slash_Step_0_gml_135_0" );
|
|
146
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (sutalk, "susie", 2, 60);
|
|
147
|
}
|
|
148
|
if (timer == 320)
|
|
149
|
{
|
|
150
|
var ratalk = stringsetloc(... okay!"... okay!", "obj_b2bridgepuzzle2_slash_Step_0_gml_140_0" );
|
|
151
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 60);
|
|
152
|
}
|
|
153
|
if (timer == 380)
|
|
154
|
con++;
|
|
155
|
}
|
|
156
|
if (stooleup == true)
|
|
157
|
{
|
|
158
|
var free = true;
|
|
159
|
with (ralsei)
|
|
160
|
{
|
|
161
|
if (i_ex(collision_rectangle(board_tilex(10), board_tiley(3), board_tilex(10) + 16, board_tiley(3) + 16, obj_mainchara_board, 0, true)))
|
|
162
|
free = false;
|
|
163
|
}
|
|
164
|
if (ralsei.canfreemove == false)
|
|
165
|
free = false;
|
|
166
|
if (free)
|
|
167
|
{
|
|
168
|
ralsei.goStoole = true;
|
|
169
|
stooleup = false;
|
|
170
|
}
|
|
171
|
}
|
|
172
|
if (!active && clearbridges == false)
|
|
173
|
{
|
|
174
|
clearbridges = true;
|
|
175
|
with (obj_board_bridge)
|
|
176
|
{
|
|
177
|
if (puzzleid == 1)
|
|
178
|
instance_destroy();
|
|
179
|
}
|
|
180
|
}
|