1 |
depth = other.depth + 1 |
2 |
if (built == 0) |
3 |
{ |
4 |
snd_play(snd_locker) |
5 |
instance_create(x, y, obj_shakeobj) |
6 |
if (bridgetarget == "bridge1") |
7 |
image_index = 0 |
8 |
if (bridgetarget == "bridge2") |
9 |
image_index = 1 |
10 |
with (obj_soliddark) |
11 |
{ |
12 |
if (!is_undefined(bridgetarget)) |
13 |
{ |
14 |
if (bridgetarget == other.bridgetarget) |
15 |
{ |
16 |
replace2 = instance_create(x, y, obj_bridgeSwappable) |
17 |
replace2.sprite_index = sprite_index |
18 |
replace2.image_index = image_index |
19 |
replace2.image_xscale = image_xscale |
20 |
replace2.image_yscale = image_yscale |
21 |
replace2.bridgetarget = other.bridgetarget |
22 |
c_nblue = make_color_rgb(39, 167, 212) |
23 |
c_nred = make_color_rgb(231, 84, 77) |
24 |
if (bridgetarget == "bridge2") |
25 |
replace2.image_blend = c_nblue |
26 |
if (bridgetarget == "bridge1") |
27 |
replace2.image_blend = c_nred |
28 |
instance_destroy() |
29 |
} |
30 |
} |
31 |
} |
32 |
built = 1 |
33 |
} |
34 |
else |
35 |
snd_play(snd_mouse) |
36 |
with (other) |
37 |
instance_destroy() |