1 | if (instance_exists(obj_purpleheart)) |
2 | { |
3 | op = obj_purpleheart; |
4 | if (hspeed > 0 && x > (op.xmid + (op.xlen * 2))) |
5 | instance_destroy(); |
6 | if (hspeed < 0 && x < (op.xmid - (op.xlen * 2))) |
7 | instance_destroy(); |
8 | } |
9 | else |
10 | { |
11 | instance_destroy(); |
12 | } |