Don't open new credit cards or take out an auto loan while preparing to buy.
Pay down credit cards or small loans to show you can handle a monthly mortgage.
Look for errors on your credit report. Disputing one wrong "late payment" can jump your score significantly.