# Help the pet find the exit.
jumble = event.message
# Convert the word to lower case.
word = jumble.toLowerCase()
if word == “north”:
pet.moveXY(pet.pos.x, pet.pos.y + 16)
elif word == “east”:
pet.moveXY(pet.pos.x + 12, pet.pos.y)
elif word == “south”:
pet.moveXY(pet.pos.x, pet.pos.y - 16)
elif word == “west”:
pet.moveXY(pet.pos.x - 12, pet.pos.y)
Assign the event handler for the pet’s “hear” event.
I can’t be sure because I haven’t learned all the pet related commands, but the code seems sound. If I was to guess, I would say the statue might say the first direction for a few ticks too long, or the next statue not soon enough, as the pet’s code continues with the original command.
Also, my apologies if its a simple error on my part.