Before anakin was put in the suit he was still struggling within himself vader/anakin he knew what he was doing was wrong(fighting ob-wan, slaughtering youngling) he did it so he could have enough power 2 save padme. But once he found out she was dead he forgot his former self and moved on untill he finds out he has a son.