1 |
if (swapped == 0) |
2 |
{ |
3 |
with (obj_bridgeSwappable) |
4 |
{ |
5 |
if (bridgetarget == other.bridgetarget) |
6 |
{ |
7 |
replace = instance_create(x, y, obj_soliddark); |
8 |
replace.sprite_index = sprite_index; |
9 |
replace.image_xscale = image_xscale; |
10 |
replace.image_yscale = image_yscale; |
11 |
replace.image_index = image_index; |
12 |
replace.bridgetarget = bridgetarget; |
13 |
replace.image_blend = other.c_nred; |
14 |
instance_destroy(); |
15 |
} |
16 |
} |
17 |
with (obj_soliddark) |
18 |
{ |
19 |
if (!is_undefined(bridgetarget)) |
20 |
{ |
21 |
if (bridgetarget == other.bridgetarget2) |
22 |
{ |
23 |
replace2 = instance_create(x, y, obj_bridgeSwappable); |
24 |
replace2.sprite_index = sprite_index; |
25 |
replace2.image_xscale = image_xscale; |
26 |
replace2.image_yscale = image_yscale; |
27 |
replace2.image_index = image_index; |
28 |
replace2.bridgetarget = other.bridgetarget2; |
29 |
replace2.image_blend = other.c_nred; |
30 |
instance_destroy(); |
31 |
} |
32 |
} |
33 |
} |
34 |
if (extflag == "swatchlingRescue") |
35 |
{ |
36 |
extflag = "triggered"; |
37 |
if (instance_exists(obj_controller_dw_mansion_bridges_funny)) |
38 |
obj_controller_dw_mansion_bridges_funny.saved = true; |
39 |
} |
40 |
swapped = 1; |
41 |
} |
42 |
else |
43 |
{ |
44 |
with (obj_bridgeSwappable) |
45 |
{ |
46 |
if (bridgetarget == other.bridgetarget2) |
47 |
{ |
48 |
replace = instance_create(x, y, obj_soliddark); |
49 |
replace.sprite_index = sprite_index; |
50 |
replace.image_index = image_index; |
51 |
replace.image_xscale = image_xscale; |
52 |
replace.image_yscale = image_yscale; |
53 |
replace.bridgetarget = bridgetarget; |
54 |
replace.image_blend = other.c_nblue; |
55 |
instance_destroy(); |
56 |
} |
57 |
} |
58 |
with (obj_soliddark) |
59 |
{ |
60 |
if (!is_undefined(bridgetarget)) |
61 |
{ |
62 |
if (bridgetarget == other.bridgetarget) |
63 |
{ |
64 |
replace2 = instance_create(x, y, obj_bridgeSwappable); |
65 |
replace2.sprite_index = sprite_index; |
66 |
replace2.image_index = image_index; |
67 |
replace2.image_xscale = image_xscale; |
68 |
replace2.image_yscale = image_yscale; |
69 |
replace2.bridgetarget = other.bridgetarget; |
70 |
replace2.image_blend = other.c_nblue; |
71 |
instance_destroy(); |
72 |
} |
73 |
} |
74 |
} |
75 |
swapped = 0; |
76 |
} |
77 |
image_index = swapped; |
78 |
var housecolor = c_white; |
79 |
if (image_index == 0) |
80 |
housecolor = c_red; |
81 |
if (image_index == 1) |
82 |
housecolor = c_blue; |
83 |
if (dontskip == 1) |
84 |
scr_fx_housesquarescr_fx_housesquarefunction scr_fx_housesquare(arg0, arg1, arg2)
{
var gr = 0;
for (i = 0; i < 3; i++)
{
gr = instance_create(arg0, arg1, obj_fx_growsquare);
gr.color = arg2;
gr.alarm[0] = 1 + (i * 3);
gr.depth = depth - 10;
}
} (x + (sprite_width / 2), y + (sprite_height / 2), housecolor); |