I am trying to make it so when the turtle walks over one of the swirls then the directions get changed. For example, if you click the down arrow it will make you go right. This will stay until the turtle runs over the next swirl, where it will again change to a new set of directions. I feel like I have the code right but it is not working.
I am also struggling to figure out why my zombie will not move and chase the turtle if anyone has any input.
Because TURTLE MOVEMENT uses a FOREVER block, the code below the TURTLE MOVEMENT block in your WHEN I RECEIVE [START TURTLE] script will never run. I changed it to
That helped, but it still has bugs. I don't know why you get the error message from ASSOC; the turtle's costume doesn't face the way it's going to move; I can move over the walls.
Some of what you do is more complicated than necessary. In particular, that long list of valid positions is asking for mistyping bugs. I would make another sprite, HIDE it, and whenever you get an arrow key, move the hidden sprite to the turtle, make it move however you plan to move the turtle, then use IF TOUCHING to see if the hidden sprite is on a wall.