i experienced the same thing about a month ago. I dreamt that i woke up from an nightmare, then everything changed into a sort of lucid dream (lets say that i was consciousness), but before i went to school it seemed that my nightmare was becoming real. so i really started to think that i were becoming insane or something. after a while i woke up again in real life, quite scary.