I shot him with my RAYgun and he turned into a ghost.
Here come the ghosts of 2 deceased hedgehogs who died in the rainstorm.
a vengeful ghost - unlike 悪霊（あくりょう） and 妖怪 （ようかい）, 幽霊 were once human and driven by revenge. 幽霊 are more popular in horror movies (like The Ring), whereas 妖怪 are more traditional.
an evil spirit; a spirit who puts curses on people, or brings misfortune to entire towns, or possesses innocent fools. Unlike 幽霊, they don't attack you directly, and unlike 妖怪 don't have a physical form
To get inspired: 霊感を受ける（うける）
To inspire someone: 霊感を与える（あたえる）