Ah, kinda like A Nightmare on Elm Street? Every time our main hero falls asleep, he'll wake up in some weird realm where he skips around meeting other people and being stalked by some crazed lunatic. and if he dies in the dream, he dies in real life.