Just move your mouse around to make the ghoul chase the mouse pointer. The dog is also running around at the same time. If the dog is blocked by the ghoul, it will stop and start barking. Just move out of its way and it will start running again.
My very own project (idea and script) done in my very first few days of learning scratch using standard sprites. Modified recently to be a bit more meaningful and fun!. Beginner scratchers can see inside how to put together an interactive animation with very little code.