Author: James Clarke
Posted on 6/9/2023
This week was the next step for me in my creation of the customer navigation AI behavior. My goal for the week was to make the customers move one space up in the line after a the first customer receives their order. The problems I ran into while working towards my goal were mostly logical ones that involved the customers not being able to move even after getting orders, customers all bundling up in the same spot, and customers walking out of place after lining up.
Unfortunately, I haven't been able to solve all the issues yet, but I am close and have come up with an actual way of making them move when necessary. The best way I could think of is separating most of the movement code from the waiting portion. I did this by using a bool to switch between two modes, moving and not moving. I also decided to use a raycast to detect collision in front of the customers so they could tell when someone is in front of them.
Currently what's being used to move the customers up a space.
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.