# Follow me on youtube channel Phy Tu
# Help with programming on Python, school math, physics
# https://www.youtube.com/channel/UCP5ycahCEZ24qmRRgNnko5Q
# Use an event handler so pet and hero will both run!
def petMove():
pet.moveXY(50, 21)
# Use pet.on("spawn", petMove) instead of petMove().
# This way your hero and pet will run at the same time.
#petMove() # ∆ Replace this with pet.on("spawn", petMove)
pet.on("spawn",petMove)
hero.moveXY(50, 12)