| 1 | if (instance_exists(obj_player_npc)) |
| 2 | active_object = 1168; |
| 3 | else |
| 4 | active_object = 1031; |
| 5 | if (active_object.x <= 308) |
| 6 | overlay_draw_enabled = true; |
| 7 | else |
| 8 | overlay_draw_enabled = false; |
| 9 | if (overlay_draw_enabled == true) |
| 10 | { |
| 11 | if (overlay_draw_alpha < 1) |
| 12 | overlay_draw_alpha += 0.05; |
| 13 | } |
| 14 | else if (overlay_draw_alpha > 0) |
| 15 | { |
| 16 | overlay_draw_alpha -= 0.05; |
| 17 | } |
| 18 | depth = active_object.depth - 5; |