horror film about a screenwriter who loses the ability to distinguish between his fantasy world and the real worl