1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (room != rm_dunes_07) |
4 |
return; |
5 |
with (obj_pl) |
6 |
{ |
7 |
if (place_meeting(x, y, obj_event_collider) && state == gml_Script_scr_normal_state) |
8 |
{ |
9 |
if (x > obj_event_collider.x) |
10 |
{ |
11 |
other.shift_layers = 1 |
12 |
if (global.dunes_flag[2] == 0) |
13 |
obj_sandstorm_controller.storm_y_start = 170 |
14 |
} |
15 |
else |
16 |
{ |
17 |
other.shift_layers = 0 |
18 |
if (global.dunes_flag[2] == 0) |
19 |
obj_sandstorm_controller.storm_y_start = 360 |
20 |
} |
21 |
} |
22 |
} |
23 |
if (shift_layers == 0) |
24 |
{ |
25 |
obj_collider_dynamic.layer_active = 1 |
26 |
layer_depth("shifting_tiles", -1000) |
27 |
layer_depth("shifting_bridge", -1001) |
28 |
layer_depth("shifting_bridge_2", -1001) |
29 |
layer_depth("shifting_bridge_3", -1001) |
30 |
layer_depth("WallNearBridge", -2000) |
31 |
} |
32 |
else if (shift_layers == 1) |
33 |
{ |
34 |
obj_collider_dynamic.layer_active = 0 |
35 |
layer_depth("shifting_tiles", 999999) |
36 |
layer_depth("shifting_bridge", 999998) |
37 |
layer_depth("shifting_bridge_2", 999998) |
38 |
layer_depth("shifting_bridge_3", 999998) |
39 |
layer_depth("WallNearBridge", -212) |
40 |
} |