if (x < 0 && hspeed < 0) instance_destroy(); if (x > 640 && hspeed > 0) instance_destroy();