Author: James Clarke
Posted on 6/2/2023
After completing the first version of the line queuing, I noticed there was an issue with the ordering of the customers. The customers would line up in order initially, but as I was making the spawner for the customers, I noticed the customers would trade places. Initially, I set it up where the customers would track the preset queuing points and choose an available one to stand at based on whether the point was active or not. This implementation caused small issues like the syncing of when customers would line up to their spots, or new customers going in taken spots, and customers already in line going to the back unintentionally.
After struggling to come up with a solution all week, I finally managed to get something I believe I can work better with. This new version consists of 3 separate scripts that each handle the behavior of the customer when queuing for orders. This method uses the queue points along with separate triggers, two lists used to manage the customers and the queue points, and more manageable functionality for the customers to use. When combining it all it produces what I think is pretty smooth and I am very happy with the results.
Used for the last point which tracks what customer hits it and enables the customer to walk to their spot in line.
Used for all the other points in the line to stop the customer from leaving their position and allowing other customers to line up.
First implementation vs. second implementation.
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.