Unfortunately bad credit history can be big obstacle for you, its is much harder to get mortgage. However, it is not impossible. You can buy house but you might have to put larger down payment.
If you have bad credit you might not able to get a loan for your first choice home,unfortunately.Expect to pay a larger interest rate, there is no way around it, getting loan for a mortgage will usually be more expensive when you have bad credit. Before you decide to go and look you should consider to fix your credit history and than start looking.