A Stampede of Sheep pt.1
While our flock behaves quite well and every sheep follows a strict policy of herding ethics, we at Sheeple decided that our sheep needed to live a little, and could perhaps devolve into a chaotic stampede when certain criteria were met. "Leave it to me," I said to them. "It'll be easy and then I can get back to work on new boss enemies." This behavior is tough, and not because finding the logic is difficult.
Our main Ram, Horatio (as I call him), has been a handful since the onset. At first my problem was figuring out how to get Horatio to move away from the player, which was no problem. Next, Horatio developed a fondness for fire and walls, which I corrected. Our last big problem was that Horatio was actually incapable of dying, which I ultimately corrected after a hard-fought battle with Unreal's collision settings.
Now Horatio is once again causing us issues, in that he is actually refusing to stampede. Actually refusing to move at all in fact. He simply stops, waits for the end of the stampede timer, and then resumes normal behavior.
My logic thus far has revolved around getting our character, checking the direction he is facing, and then just moving along that direction a certain distance. Sounds simple, move the direction you are facing. So why does he suddenly feel the need to stand obstinate against those who created him?
My next post will revolve around (hopefully) how I managed to fix this problem. Till then, thank you for reading!