| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
if (!instance_exists(shadow_actor)) |
| 4 |
{ |
| 5 |
instance_destroy(); |
| 6 |
exit; |
| 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.3) |
| 20 |
draw_alpha += 0.1; |
| 21 |
} |
| 22 |
else if (draw_alpha > 0) |
| 23 |
{ |
| 24 |
draw_alpha -= 0.1; |
| 25 |
} |
| 26 |
} |
| 27 |
else if (reverse == false) |
| 28 |
{ |
| 29 |
if (draw_alpha > 0) |
| 30 |
draw_alpha -= 0.1; |
| 31 |
} |
| 32 |
else if (draw_alpha < 0.3) |
| 33 |
{ |
| 34 |
draw_alpha += 0.1; |
| 35 |
} |
| 36 |
shadow_actor.visible = false; |
| 37 |
depth = shadow_actor.depth - 1; |