1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (!instance_exists(shadow_actor)) |
4 |
{ |
5 |
instance_destroy() |
6 |
return; |
7 |
} |
8 |
with (shadow_actor) |
9 |
{ |
10 |
if place_meeting(x, y, obj_shadow_collider) |
11 |
other.shadow_active = true |
12 |
else |
13 |
other.shadow_active = false |
14 |
} |
15 |
if (shadow_active == true) |
16 |
{ |
17 |
if (reverse == false) |
18 |
{ |
19 |
if (draw_alpha < 0.5) |
20 |
draw_alpha += 0.1 |
21 |
} |
22 |
else if (draw_alpha > 0) |
23 |
draw_alpha -= 0.1 |
24 |
} |
25 |
else if (reverse == false) |
26 |
{ |
27 |
if (draw_alpha > 0) |
28 |
draw_alpha -= 0.1 |
29 |
} |
30 |
else if (draw_alpha < 0.5) |
31 |
draw_alpha += 0.1 |
32 |
shadow_actor.visible = false |
33 |
depth = shadow_actor.depth - 1 |