Hello Developers, so I recently made an Obby racing game with my friends where you have to race a player, and now I want to add bots to the game so you don’t have to wait for players to join you. Well, there’s one problem. The pathfinding system isn’t detecting wraparounds. It thinks there’s no way to do them. So I want to teach it how to do wraparounds. I’ve tried to do research and I couldn’t find any answers or even topics.
Example of a wraparound (This is not my game):
Please don’t ask for scripts as I currently have no scripts regarding this.
Games that have advanced movement usually use some label or “gateway” to tell pathfinding AI that they need to do a certain move to cross part of their navigable space. In counter strike for example there are labels tell the AI to jump on top of boxes. You could do something like this.
So, I fortunately figured out a solution days after I posted this topic, and I thought “Why not share how I did it?”
So, I put an UI button only for me and my friend, then I made so that if the button gets clicked it will put your torso’s coordinates in a table (every 200 milliseconds to be exact), then when you click the button again it will print the table, and then I pasted the table in a script and scripted it so that the bot would tween to every coordinate in the table.
This may be hard to understand and if it is then I apologize for the confusion.