I've run into this problem where I want to do stuff but I've lost all motivation to do anything. Like I'll sit there feeling shit about not doing anything but can't think of anything I really want to do, or if I do then I can't be bothered to do it.
Although I have been trying to talk to friends quite a bit lately just so I have something to do but most of them are pretty busy most of the time.
Like Peri said, take walks and get active. I've started doing that when I get bored.
Also I was getting the same problem when doing Codeacademy and I think I know why. Because Codeacademy doesn't really teach you jackshit about coding, all the variables I've learned I can't remember what they do, and half the shit they teach you, you won't really ever use in the way the taught you. I know its mostly examples, but the whole lesson feels like its nothing but examples.
When I signed up I was expecting long detailed paragraphs of what each syntax, variable, or string would do; but instead I got one sentence going, "THIS ALLOWS YOU TO SEE YOUR NAME!" Which is weird because KahnAcademy is a really great teaching tool, and that does go in-depth about the subject you're wanting to learn. They even have video tutorials and tutoring.
But I've learned more about coding when dicking around with Gamemaker then I ever had during my course at CodeAcademy.