1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (room != rm_dunes_04) |
4 |
return; |
5 |
with (obj_pl) |
6 |
{ |
7 |
if place_meeting(x, y, obj_event_collider) |
8 |
{ |
9 |
if (y > obj_event_collider.y) |
10 |
other.shift_layers = 0 |
11 |
else |
12 |
other.shift_layers = 1 |
13 |
} |
14 |
} |
15 |
if (shift_layers == 0) |
16 |
{ |
17 |
obj_shadow_collider.sprite_index = spr_solve |
18 |
with (obj_collider_dynamic) |
19 |
layer_active = 1 |
20 |
layer_depth("BridgeTop", -440) |
21 |
} |
22 |
else if (shift_layers == 1) |
23 |
{ |
24 |
obj_shadow_collider.sprite_index = -4 |
25 |
with (obj_collider_dynamic) |
26 |
layer_active = 0 |
27 |
layer_depth("BridgeTop", 999) |
28 |
} |
29 |
show_debug_message(shift_layers) |