Program the ghost to move back and forth and program the bat to hide and scream when it touches the ghost.
simple motion, visibility, direction and turning, advanced events, simple sound playing, detect conditions, screen bounds, simple loops, delays, simple events,