Click the ghoul for a movement. Click the SCARE button to scare somebody. Click the RESET button to reset after scaring. Press SPACE for a bat. Click the bat for movement.
I got this idea from the tutorial of how to make your own virtual pet. I did not use the tutorial in the making of this game/program.