1 |
with (obj_doorway) |
2 |
{ |
3 |
if (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_pl, false, true) != -4) |
4 |
event_perform(ev_collision, obj_pl) |
5 |
} |
6 |
if (global.snowdin_flag[12] == 2) |
7 |
return; |
8 |
if (active == true) |
9 |
{ |
10 |
instance_create(200, -10, obj_molten_rock_snowdin_19) |
11 |
obj_snowdin_19_piston.active = true |
12 |
active = false |
13 |
} |
14 |
if (camera_end == true) |
15 |
{ |
16 |
obj_snowdin_19_piston.active = false |
17 |
if (scr_camera_movescr_camera_movefunction scr_camera_move(argument0, argument1, argument2) //gml_Script_scr_camera_move
{
if (!instance_exists(obj_camera))
{
instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_camera)
__view_set((9 << 0), 0, 1120)
}
else
{
obj_camera.x = __view_get((9 << 0), 0).x
obj_camera.y = __view_get((9 << 0), 0).y
__view_set((9 << 0), 0, 1120)
}
obj_camera.move = true
obj_camera.xx = argument0
obj_camera.yy = argument1
obj_camera.spd = argument2
if (abs(argument0 - obj_camera.x) <= argument2 && abs(argument1 - obj_camera.y) <= argument2)
return true;
else
return false;
} (obj_pl.x, obj_pl.y, 3) == true) |
18 |
active = 2 |
19 |
} |
20 |
if (active == 2) |
21 |
{ |
22 |
active = false |
23 |
camera_end = false |
24 |
audio_stop_sound(snd_puzzle_woodmove) |
25 |
if (!global.dialogue_open) |
26 |
scr_cutscene_end() |
27 |
else |
28 |
global.cutscene = false |
29 |
__view_set((9 << 0), 0, 1031) |
30 |
obj_snowdin_19_lever_overworld_yellow.waiter = 0 |
31 |
instance_destroy(obj_camera) |
32 |
} |