|
1
|
if (image_index == 0)
|
|
2
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
3
|
else
|
|
4
|
depth = 100001;
|
|
5
|
if (place_meeting(x, y, obj_caterpillarchara) || place_meeting(x, y, obj_mainchara) || (place_meeting(x, y, obj_actor) && obj_actor.active == 1))
|
|
6
|
{
|
|
7
|
if (instance_exists(obj_controller_dw_mansion_east_1f_a))
|
|
8
|
obj_controller_dw_mansion_east_1f_a.triggered = 1;
|
|
9
|
image_index = 1;
|
|
10
|
snd_play(choose(snd_break1, snd_break2));
|
|
11
|
brokenpot = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (x, y, sprite_index);
|
|
12
|
brokenpot.image_index = 1;
|
|
13
|
brokenpot.depth = 800000;
|
|
14
|
if (room == room_dw_mansion_potBalance && instance_exists(obj_controller_dw_mansion_potBalance))
|
|
15
|
{
|
|
16
|
with (obj_controller_dw_mansion_potBalance)
|
|
17
|
alarm[0] = 1; gml_Object_obj_queenvase_Alarm_0.gml
exit;
|
|
18
|
}
|
|
19
|
instance_destroy();
|
|
20
|
}
|