Posts

Showing posts with the label Builder AI

AI and Structures being built

Image
Like usual any work were AI is involved is extra tricky and needs to be made with caution. So here we have it our first AI. It is a builder AI. For now the AI just looks for any building being placed and if so then it will start to gather the materials and start the build process. Image 1: Showing the Material Stat UI and the Storage Building Image 2: Path of AI. Green: The fastest path taken. Red: The slowest path not taken. Features: 1. Builder AI 2. AI path 3. Storage Building 4. Material Stat UI    1. Builder AI: This AI is responsible for building any building placed in the game world. It will search for any placed building and then locate the nearest Storage building to gather the materials. For now it searches the nearest Storage building within a range from itself. It brings the necessary materials from the Storage building and starts to do its job.    2. AI path: This is the path that the AI follows. From the video we can see that ...