1 | if (instance_exists(obj_purpleheart)) |
2 | { |
3 | op = obj_purpleheart; |
4 | if (side == 0) |
5 | { |
6 | hspeed -= 0.25; |
7 | image_angle += 8; |
8 | } |
9 | if (side == 1) |
10 | { |
11 | hspeed += 0.25; |
12 | image_angle -= 8; |
13 | } |
14 | if (hspeed > 0 && x > (op.xmid + (op.xlen * 5))) |
15 | instance_destroy(); |
16 | if (hspeed < 0 && x < (op.xmid - (op.xlen * 5))) |
17 | instance_destroy(); |
18 | } |
19 | else |
20 | { |
21 | instance_destroy(); |
22 | } |