|
1
|
if (image_index == 0)
|
|
2
|
{
|
|
3
|
enemy = instance_create(x, y, obj_board_enemy_monster);
|
|
4
|
if (type == 1)
|
|
5
|
enemy.spd = 10;
|
|
6
|
}
|
|
7
|
if (image_index == 1)
|
|
8
|
{
|
|
9
|
enemy = instance_create(x, y, obj_board_enemy_monster);
|
|
10
|
enemy.image_blend = c_gray;
|
|
11
|
enemy.hp = 999;
|
|
12
|
enemy.maxhp = 999;
|
|
13
|
enemy._sprIdle = spr_board_monster;
|
|
14
|
enemy._sprAngry = spr_board_monster_angery;
|
|
15
|
if (room == room_board_2_sword)
|
|
16
|
enemy.type = 3;
|
|
17
|
}
|
|
18
|
if (image_index == 2)
|
|
19
|
{
|
|
20
|
enemy = instance_create(x, y, obj_board_enemy_monster);
|
|
21
|
enemy.type = 1;
|
|
22
|
enemy.spd = 4;
|
|
23
|
enemy.image_blend = c_yellow;
|
|
24
|
enemy.hp = 2;
|
|
25
|
enemy.maxhp = 2;
|
|
26
|
enemy.bulletimer = 10 - random(25);
|
|
27
|
enemy.sword_immunity_lv = 2;
|
|
28
|
if (room == room_board_dungeon_2 || room == room_board_dungeon_3)
|
|
29
|
enemy.spd = 6;
|
|
30
|
if (type == 1)
|
|
31
|
{
|
|
32
|
enemy.spearboss = true;
|
|
33
|
enemy.bulletimer = 0;
|
|
34
|
enemy.hp = 8;
|
|
35
|
enemy.maxhp = 8;
|
|
36
|
enemy.spd = 3;
|
|
37
|
enemy.slow = 1;
|
|
38
|
instance_create(board_tilex(4), board_tiley(2), obj_board_miniboss_wall);
|
|
39
|
instance_create(board_tilex(5), board_tiley(2), obj_board_miniboss_wall);
|
|
40
|
instance_create(board_tilex(6), board_tiley(2), obj_board_miniboss_wall);
|
|
41
|
instance_create(board_tilex(7), board_tiley(2), obj_board_miniboss_wall);
|
|
42
|
}
|
|
43
|
}
|
|
44
|
if (image_index == 3)
|
|
45
|
{
|
|
46
|
enemy = instance_create(x, y, obj_board_enemy_monster);
|
|
47
|
enemy.type = 2;
|
|
48
|
enemy.spd = 4;
|
|
49
|
enemy.hp = 2;
|
|
50
|
enemy.maxhp = 2;
|
|
51
|
enemy.image_blend = c_orange;
|
|
52
|
enemy.sword_immunity_lv = 3;
|
|
53
|
if (room == room_board_dungeon_2 || room == room_board_dungeon_3)
|
|
54
|
enemy.spd = 4;
|
|
55
|
}
|
|
56
|
if (image_index == 4)
|
|
57
|
{
|
|
58
|
enemy = instance_create(x, y, obj_board_enemy_yellowflower);
|
|
59
|
enemy.sword_immunity_lv = 2;
|
|
60
|
if (type == 1)
|
|
61
|
enemy.slow = true;
|
|
62
|
if (type == 2)
|
|
63
|
{
|
|
64
|
enemy.slow = true;
|
|
65
|
enemy.bubbletimer = -30 - irandom(20);
|
|
66
|
}
|
|
67
|
if (type == 3)
|
|
68
|
{
|
|
69
|
enemy.slow = true;
|
|
70
|
enemy.bubbletimer = -100 - irandom(20);
|
|
71
|
}
|
|
72
|
var cold = false;
|
|
73
|
with (obj_board_cold)
|
|
74
|
{
|
|
75
|
if (active)
|
|
76
|
cold = true;
|
|
77
|
}
|
|
78
|
if (cold)
|
|
79
|
enemy.sprite_index = spr_board_flower_caqua;
|
|
80
|
}
|
|
81
|
if (image_index == 5)
|
|
82
|
{
|
|
83
|
enemy = instance_create(x, y, obj_board_enemy_yellowflower);
|
|
84
|
enemy.type = 1;
|
|
85
|
enemy.sprite_index = spr_board_flower_aqua;
|
|
86
|
}
|
|
87
|
if (image_index == 6)
|
|
88
|
{
|
|
89
|
enemy = instance_create(x, y, obj_board_enemy_bluefish);
|
|
90
|
enemy.sword_immunity_lv = 2;
|
|
91
|
if (room == room_board_1_sword)
|
|
92
|
enemy.board_1_type = type;
|
|
93
|
}
|
|
94
|
if (image_index == 7)
|
|
95
|
{
|
|
96
|
enemy = instance_create(x, y, obj_board_enemy_bluefish);
|
|
97
|
enemy.silverfish = true;
|
|
98
|
enemy.hp = 5;
|
|
99
|
enemy.maxhp = 5;
|
|
100
|
enemy.sprite_index = spr_board_silverfish_r;
|
|
101
|
}
|
|
102
|
if (image_index == 8)
|
|
103
|
{
|
|
104
|
enemy = instance_create(x, y, obj_board_enemy_silentcat);
|
|
105
|
if (type == 1)
|
|
106
|
enemy.onebyone = true;
|
|
107
|
}
|
|
108
|
if (image_index == 9)
|
|
109
|
{
|
|
110
|
enemy = instance_create(x, y, obj_board_enemy_singingcat);
|
|
111
|
enemy.type = 1;
|
|
112
|
enemy.spd = 6;
|
|
113
|
enemy.hp = 2;
|
|
114
|
enemy.maxhp = enemy.hp;
|
|
115
|
}
|
|
116
|
if (image_index == 10)
|
|
117
|
{
|
|
118
|
enemy = instance_create(x, y, obj_board_enemy_lizard);
|
|
119
|
if (type == 1)
|
|
120
|
enemy.dontmove = true;
|
|
121
|
}
|
|
122
|
if (image_index == 11)
|
|
123
|
{
|
|
124
|
enemy = instance_create(x, y, obj_board_enemy_lizard);
|
|
125
|
enemy.spd = 5;
|
|
126
|
enemy.type = 1;
|
|
127
|
enemy.sprite_index = spr_board_lizard_l_alt;
|
|
128
|
}
|
|
129
|
if (image_index == 12)
|
|
130
|
{
|
|
131
|
enemy = instance_create(x, y, obj_board_enemy_lizard);
|
|
132
|
enemy.spd = 6;
|
|
133
|
enemy.type = 2;
|
|
134
|
enemy.sprite_index = spr_board_lizard_l_jumpy;
|
|
135
|
}
|
|
136
|
if (image_index == 13)
|
|
137
|
{
|
|
138
|
if (room == room_board_1_sword)
|
|
139
|
enemy = instance_create(x, y, obj_board_enemy_bluebird_board1);
|
|
140
|
else
|
|
141
|
enemy = instance_create(x, y, obj_board_enemy_bluebird);
|
|
142
|
}
|
|
143
|
if (image_index == 14)
|
|
144
|
{
|
|
145
|
enemy = instance_create(x, y, obj_board_enemy_deer);
|
|
146
|
instance_destroy();
|
|
147
|
exit;
|
|
148
|
}
|
|
149
|
if (image_index == 15)
|
|
150
|
{
|
|
151
|
enemy = instance_create(x, y, obj_board_enemy_black_deer);
|
|
152
|
if (type == 1)
|
|
153
|
{
|
|
154
|
enemy.toriel = true;
|
|
155
|
enemy.hp = 999;
|
|
156
|
enemy.maxhp = 999;
|
|
157
|
instance_create(board_tilex(6), board_tiley(1), obj_board_puzzle_wall);
|
|
158
|
instance_create(board_tilex(6), board_tiley(2), obj_board_puzzle_wall);
|
|
159
|
instance_create(board_tilex(6), board_tiley(3), obj_board_puzzle_wall);
|
|
160
|
instance_create(board_tilex(5), board_tiley(4), obj_board_puzzle_wall);
|
|
161
|
instance_create(board_tilex(5), board_tiley(5), obj_board_puzzle_wall);
|
|
162
|
instance_create(board_tilex(5), board_tiley(6), obj_board_puzzle_wall);
|
|
163
|
instance_create(board_tilex(9), board_tiley(3), obj_board_puzzle_wall);
|
|
164
|
instance_create(board_tilex(8), board_tiley(4), obj_board_puzzle_wall);
|
|
165
|
instance_create(board_tilex(9), board_tiley(5), obj_board_puzzle_wall);
|
|
166
|
instance_create(board_tilex(7), board_tiley(5), obj_board_puzzle_wall);
|
|
167
|
}
|
|
168
|
}
|
|
169
|
if (image_index == 16)
|
|
170
|
enemy = instance_create(x, y, obj_board_enemy_rotaty);
|
|
171
|
if (image_index == 17)
|
|
172
|
enemy = instance_create(x, y, obj_board_enemy_bouncy);
|
|
173
|
if (image_index == 18)
|
|
174
|
{
|
|
175
|
enemy = instance_create(x + 16, y + 16, obj_fire_bar_base);
|
|
176
|
enemy.place = type;
|
|
177
|
}
|
|
178
|
if (image_index == 19)
|
|
179
|
{
|
|
180
|
if (type == 0)
|
|
181
|
enemy = instance_create(x + 16, y + 16, obj_board_icepuzzle_controller1);
|
|
182
|
if (type == 1)
|
|
183
|
enemy = instance_create(x + 16, y + 16, obj_board_icepuzzle_controller2);
|
|
184
|
if (type == 2)
|
|
185
|
alarm[0] = 1; gml_Object_obj_board_enemy_spawner_Alarm_0.gml
with (obj_board_camera)
{
instawarp = true;
if (other.teleport_type == "none")
scr_quickwarp(2432, 576, 2432, 656 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "to maze")
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "maze up")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1568);
if (obj_board_camera.board_2_maze_state == 0)
obj_board_camera.board_2_maze_state = 1;
else if (obj_board_camera.board_2_maze_state == 1)
obj_board_camera.board_2_maze_state = 2;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze down")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1344);
if (obj_board_camera.board_2_maze_state == 5)
obj_board_camera.board_2_maze_state = 6;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze left")
{
scr_quickwarp(3584, 1344, 3936, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 2)
obj_board_camera.board_2_maze_state = 3;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 0)
scr_quickwarp(1280, 1344, 1632, 1424 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze right")
{
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 3)
obj_board_camera.board_2_maze_state = 4;
else if (obj_board_camera.board_2_maze_state == 4)
obj_board_camera.board_2_maze_state = 5;
else if (obj_board_camera.board_2_maze_state == 6)
obj_board_camera.board_2_maze_state = 7;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 7)
scr_quickwarp(3968, 1088, 3968, 1168 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze out")
scr_quickwarp(2432, 1344, 2432, 1424 + (obj_mainchara_board.y - 144));
}
if (teleport_type == "none")
instance_destroy();
|
|
186
|
if (type == 3)
|
|
187
|
{
|
|
188
|
if (obj_board_glacier_switch3.used == false && !place_meeting(x, y, obj_board_tree))
|
|
189
|
var mon = instance_create(x, y, obj_board_tree);
|
|
190
|
}
|
|
191
|
if (type == 4)
|
|
192
|
instance_create(x + 16, y + 16, obj_board_chase_event);
|
|
193
|
if (type == 5)
|
|
194
|
enemy = instance_create(x + 16, y + 16, obj_board_floweroom_doors);
|
|
195
|
if (type == 6)
|
|
196
|
{
|
|
197
|
alarm[0] = 1; gml_Object_obj_board_enemy_spawner_Alarm_0.gml
with (obj_board_camera)
{
instawarp = true;
if (other.teleport_type == "none")
scr_quickwarp(2432, 576, 2432, 656 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "to maze")
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "maze up")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1568);
if (obj_board_camera.board_2_maze_state == 0)
obj_board_camera.board_2_maze_state = 1;
else if (obj_board_camera.board_2_maze_state == 1)
obj_board_camera.board_2_maze_state = 2;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze down")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1344);
if (obj_board_camera.board_2_maze_state == 5)
obj_board_camera.board_2_maze_state = 6;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze left")
{
scr_quickwarp(3584, 1344, 3936, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 2)
obj_board_camera.board_2_maze_state = 3;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 0)
scr_quickwarp(1280, 1344, 1632, 1424 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze right")
{
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 3)
obj_board_camera.board_2_maze_state = 4;
else if (obj_board_camera.board_2_maze_state == 4)
obj_board_camera.board_2_maze_state = 5;
else if (obj_board_camera.board_2_maze_state == 6)
obj_board_camera.board_2_maze_state = 7;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 7)
scr_quickwarp(3968, 1088, 3968, 1168 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze out")
scr_quickwarp(2432, 1344, 2432, 1424 + (obj_mainchara_board.y - 144));
}
if (teleport_type == "none")
instance_destroy();
|
|
198
|
teleport_type = "to maze";
|
|
199
|
}
|
|
200
|
if (type == 7)
|
|
201
|
{
|
|
202
|
alarm[0] = 1; gml_Object_obj_board_enemy_spawner_Alarm_0.gml
with (obj_board_camera)
{
instawarp = true;
if (other.teleport_type == "none")
scr_quickwarp(2432, 576, 2432, 656 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "to maze")
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "maze up")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1568);
if (obj_board_camera.board_2_maze_state == 0)
obj_board_camera.board_2_maze_state = 1;
else if (obj_board_camera.board_2_maze_state == 1)
obj_board_camera.board_2_maze_state = 2;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze down")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1344);
if (obj_board_camera.board_2_maze_state == 5)
obj_board_camera.board_2_maze_state = 6;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze left")
{
scr_quickwarp(3584, 1344, 3936, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 2)
obj_board_camera.board_2_maze_state = 3;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 0)
scr_quickwarp(1280, 1344, 1632, 1424 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze right")
{
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 3)
obj_board_camera.board_2_maze_state = 4;
else if (obj_board_camera.board_2_maze_state == 4)
obj_board_camera.board_2_maze_state = 5;
else if (obj_board_camera.board_2_maze_state == 6)
obj_board_camera.board_2_maze_state = 7;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 7)
scr_quickwarp(3968, 1088, 3968, 1168 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze out")
scr_quickwarp(2432, 1344, 2432, 1424 + (obj_mainchara_board.y - 144));
}
if (teleport_type == "none")
instance_destroy();
|
|
203
|
teleport_type = "maze up";
|
|
204
|
}
|
|
205
|
if (type == 8)
|
|
206
|
{
|
|
207
|
alarm[0] = 1; gml_Object_obj_board_enemy_spawner_Alarm_0.gml
with (obj_board_camera)
{
instawarp = true;
if (other.teleport_type == "none")
scr_quickwarp(2432, 576, 2432, 656 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "to maze")
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "maze up")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1568);
if (obj_board_camera.board_2_maze_state == 0)
obj_board_camera.board_2_maze_state = 1;
else if (obj_board_camera.board_2_maze_state == 1)
obj_board_camera.board_2_maze_state = 2;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze down")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1344);
if (obj_board_camera.board_2_maze_state == 5)
obj_board_camera.board_2_maze_state = 6;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze left")
{
scr_quickwarp(3584, 1344, 3936, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 2)
obj_board_camera.board_2_maze_state = 3;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 0)
scr_quickwarp(1280, 1344, 1632, 1424 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze right")
{
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 3)
obj_board_camera.board_2_maze_state = 4;
else if (obj_board_camera.board_2_maze_state == 4)
obj_board_camera.board_2_maze_state = 5;
else if (obj_board_camera.board_2_maze_state == 6)
obj_board_camera.board_2_maze_state = 7;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 7)
scr_quickwarp(3968, 1088, 3968, 1168 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze out")
scr_quickwarp(2432, 1344, 2432, 1424 + (obj_mainchara_board.y - 144));
}
if (teleport_type == "none")
instance_destroy();
|
|
208
|
teleport_type = "maze down";
|
|
209
|
}
|
|
210
|
if (type == 9)
|
|
211
|
{
|
|
212
|
alarm[0] = 1; gml_Object_obj_board_enemy_spawner_Alarm_0.gml
with (obj_board_camera)
{
instawarp = true;
if (other.teleport_type == "none")
scr_quickwarp(2432, 576, 2432, 656 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "to maze")
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "maze up")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1568);
if (obj_board_camera.board_2_maze_state == 0)
obj_board_camera.board_2_maze_state = 1;
else if (obj_board_camera.board_2_maze_state == 1)
obj_board_camera.board_2_maze_state = 2;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze down")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1344);
if (obj_board_camera.board_2_maze_state == 5)
obj_board_camera.board_2_maze_state = 6;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze left")
{
scr_quickwarp(3584, 1344, 3936, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 2)
obj_board_camera.board_2_maze_state = 3;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 0)
scr_quickwarp(1280, 1344, 1632, 1424 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze right")
{
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 3)
obj_board_camera.board_2_maze_state = 4;
else if (obj_board_camera.board_2_maze_state == 4)
obj_board_camera.board_2_maze_state = 5;
else if (obj_board_camera.board_2_maze_state == 6)
obj_board_camera.board_2_maze_state = 7;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 7)
scr_quickwarp(3968, 1088, 3968, 1168 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze out")
scr_quickwarp(2432, 1344, 2432, 1424 + (obj_mainchara_board.y - 144));
}
if (teleport_type == "none")
instance_destroy();
|
|
213
|
teleport_type = "maze left";
|
|
214
|
}
|
|
215
|
if (type == 10)
|
|
216
|
{
|
|
217
|
alarm[0] = 1; gml_Object_obj_board_enemy_spawner_Alarm_0.gml
with (obj_board_camera)
{
instawarp = true;
if (other.teleport_type == "none")
scr_quickwarp(2432, 576, 2432, 656 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "to maze")
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "maze up")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1568);
if (obj_board_camera.board_2_maze_state == 0)
obj_board_camera.board_2_maze_state = 1;
else if (obj_board_camera.board_2_maze_state == 1)
obj_board_camera.board_2_maze_state = 2;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze down")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1344);
if (obj_board_camera.board_2_maze_state == 5)
obj_board_camera.board_2_maze_state = 6;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze left")
{
scr_quickwarp(3584, 1344, 3936, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 2)
obj_board_camera.board_2_maze_state = 3;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 0)
scr_quickwarp(1280, 1344, 1632, 1424 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze right")
{
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 3)
obj_board_camera.board_2_maze_state = 4;
else if (obj_board_camera.board_2_maze_state == 4)
obj_board_camera.board_2_maze_state = 5;
else if (obj_board_camera.board_2_maze_state == 6)
obj_board_camera.board_2_maze_state = 7;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 7)
scr_quickwarp(3968, 1088, 3968, 1168 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze out")
scr_quickwarp(2432, 1344, 2432, 1424 + (obj_mainchara_board.y - 144));
}
if (teleport_type == "none")
instance_destroy();
|
|
218
|
teleport_type = "maze right";
|
|
219
|
}
|
|
220
|
if (type == 11)
|
|
221
|
{
|
|
222
|
alarm[0] = 1; gml_Object_obj_board_enemy_spawner_Alarm_0.gml
with (obj_board_camera)
{
instawarp = true;
if (other.teleport_type == "none")
scr_quickwarp(2432, 576, 2432, 656 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "to maze")
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (other.teleport_type == "maze up")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1568);
if (obj_board_camera.board_2_maze_state == 0)
obj_board_camera.board_2_maze_state = 1;
else if (obj_board_camera.board_2_maze_state == 1)
obj_board_camera.board_2_maze_state = 2;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze down")
{
scr_quickwarp(3584, 1344, 3600 + (obj_mainchara_board.x - 144), 1344);
if (obj_board_camera.board_2_maze_state == 5)
obj_board_camera.board_2_maze_state = 6;
else
obj_board_camera.board_2_maze_state = 0;
}
if (other.teleport_type == "maze left")
{
scr_quickwarp(3584, 1344, 3936, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 2)
obj_board_camera.board_2_maze_state = 3;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 0)
scr_quickwarp(1280, 1344, 1632, 1424 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze right")
{
scr_quickwarp(3584, 1344, 3584, 1424 + (obj_mainchara_board.y - 144));
if (obj_board_camera.board_2_maze_state == 3)
obj_board_camera.board_2_maze_state = 4;
else if (obj_board_camera.board_2_maze_state == 4)
obj_board_camera.board_2_maze_state = 5;
else if (obj_board_camera.board_2_maze_state == 6)
obj_board_camera.board_2_maze_state = 7;
else
obj_board_camera.board_2_maze_state = 0;
if (obj_board_camera.board_2_maze_state == 7)
scr_quickwarp(3968, 1088, 3968, 1168 + (obj_mainchara_board.y - 144));
}
if (other.teleport_type == "maze out")
scr_quickwarp(2432, 1344, 2432, 1424 + (obj_mainchara_board.y - 144));
}
if (teleport_type == "none")
instance_destroy();
|
|
223
|
teleport_type = "maze out";
|
|
224
|
}
|
|
225
|
exit;
|
|
226
|
}
|
|
227
|
if (image_index == 20)
|
|
228
|
{
|
|
229
|
enemy = instance_create(x, y, obj_pushableblock_board);
|
|
230
|
enemy.sprite_index = spr_board_pushableblock_ice;
|
|
231
|
enemy.custom_sprite = spr_board_pushableblock_ice;
|
|
232
|
enemy.image_xscale = 1;
|
|
233
|
enemy.image_yscale = 1;
|
|
234
|
}
|
|
235
|
enemy.spawnerid = id;
|