| 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 | 
            if (image_yscale < 1)  | 
    
    
    
        | 9 | 
                image_yscale += 0.1;  | 
    
    
    
        | 10 | 
            if (vspeed > 0 && y > (op.yzero + ((op.yamt - 1) * op.yspace) + 10))  | 
    
    
    
        | 11 | 
            { | 
    
    
    
        | 12 | 
                y -= vspeed;  | 
    
    
    
        | 13 | 
                vspeed = -vspeed;  | 
    
    
    
        | 14 | 
                image_yscale = 0.6;  | 
    
    
    
        | 15 | 
            }  | 
    
    
    
        | 16 | 
            if (vspeed < 0 && y < (op.yzero - 10))  | 
    
    
    
        | 17 | 
            { | 
    
    
    
        | 18 | 
                y -= vspeed;  | 
    
    
    
        | 19 | 
                vspeed = -vspeed;  | 
    
    
    
        | 20 | 
                image_yscale = 0.6;  | 
    
    
    
        | 21 | 
            }  | 
    
    
    
        | 22 | 
        }  | 
    
    
    
        | 23 | 
        else  | 
    
    
    
        | 24 | 
        { | 
    
    
    
        | 25 | 
            instance_destroy();  | 
    
    
    
        | 26 | 
        }  |