Ghost Trick: Phantom Detective was released for Nintendo DS in 2010. It was a linear detective game written and directed by Shu Takumi, the creator of the the Phoenix Wright series, and it has you solving puzzles – and avoiding murders – by possessing objects and corpses.
It’s just been rated for a PC release in Korea.