The condition you had is known as sleep paralysis, which is completely normal and is often a side-effect from certain methods of lucid dreaming, but that's not the only way it happens. I'm not an expert on dreaming (I've been unable to recall my dreams since I was about 6), but I have heard my friends talk about it. I suggest you do more research on it, though. Sorry I wasn't much help.