You can only get the ghost characters after you have completed the main story. The ghost Anakin Skywalker unlocks at 1,100,000 studs. Along with the abilities of Anakin, you will now have the option of invisibility too.