One of the keys to creating what you desire in your life is to combine intention and attention with positive emotion. I understand that sometimes, it's difficult to get into a positive space when things seem to be going poorly; however, when your focus is on negativity, you draw more negativity into your life.
So what is the path to being positive, even when times seem dark? Finding something that makes you happy. You can snuggle with a pet. You can think of people you love. You can find something that makes you laugh. Or you can consider the things you have for which you are grateful.
Expressing gratitude increases positive emotion. Start small if you have to; the couch you are sitting on supports you comfortably, you ate tasty meal last night, you have a roof over your head at the moment. Then, work your way up. You can do this in all circumstances. If you can find things to be grateful for when you're feeling down, you can start to shift your emotions in a positive direction.