Hello! I’m working on a farming/hunting game, and I want to add animals into the game, like pigs, cows, sheep, goats, deer, birds, etc. (These are going to interact with non-flat land) I haven’t worked much with Roblox AI before, so I was wondering if there are any things I should know before diving into this, or if there are any good resources out there.
I use a few methods for handling animals:
- Create a part which covers the area you want them to roam. Select a random position within the part and simply MoveTO: that location
- Add nodes around the area to roam, animal then selects a random node and pathfinds to it
- Chaotically select a random vector and let the animal move.
Check out Monkey Poop to see all 3 in action.
The Lion uses method 1 in an attempt to control him. The Penguins use method 2. The elephant uses method 3 and is truly chaotic.