So on that game I've been working on, I fixed the previous problem I was having but came across a new one... i have this skeleton enemy I wanted to patrol the 2nd room in the castle I'm building, but once he gets to the end he just keeps going!
I was trying to adapt "Artificial Intelligence in Games, Part 2: State Machines & Platformers" to my game since it seemed to be closest to what I wanted, but it doesn't seem to be working: I'm sure I'm missing something, but I'm not sure what it is.