Spawn running Bot on a randomly generated map

Hi - I’ve created an endless runner game. The map is randomly generated from several blueprint classes.
I would like to spawn a Bot that runs on the randomly generated map at a pre-defined speed.
(The idea would be that the player has to keep up with the Bot and run at the same speed).

  1. Can a Nav Mesh Bounds Volume be applied to a blueprint class platform section ? (I tried dragging one into the blueprint class but it doesn’t show any object or wireframe).
  2. Is it better to try and do this in a regular pre-built map on which a Nav Mesh Bounds Volume can be applied ?
  3. I’ve seen sample blueprints where the Bot must try to collide/catch the player using the ‘AI Move To’ node, what is the correct way to set up the AI blueprint so that the Bot will run the course regardless of the players position ?

What you want to do is using the Dynamic Navigation Mesh. Simply go to your project’s Navigation System and set the mode to the Dynamic Navigation mesh.

Then add the NaviagionInvoker Component to your AI actor.

As far as AI goes. You will have to continuously update the destination of your AI. You gotta have your spawn logic somewhere. When you spawn a new tile set it’s location as your AI’s new destination and it will just continue to run.

Cheers

Based on your feedback I’ve decided to change from the endless runner to a pre-defined environment. I think there would be too many conflicting issues with what I’m trying to achieve. Thanks for your advice all the same.

I’m working on a game with a tile based landscape that generates real-time within a distance of the player. I want AI to be able to navigate on it, I cant use a navigation volume since my landscape is infinite, and have had no luck at making the nav mesh generate dynamically. I’ve tried changing the setting you have suggested.