Pathfinding #1
In my upcoming game Automata, the enemies will be intelligent. Therefore, creating a pathfinding system is essential to allow the AI to move towards the player:
Being a programming novice, I'm not very good at pathfinding. To begin, I first divided my terrain (flat, as this is another test project) into multiple 32x32 pixel tiles. I created a detection system that detects if the player steps on a tile and colors it green. The other tiles color according to their proximity to the player (the lighter the color, the farther away the player is). There are therefore four zones:
- Detection zones 1 and 2: If the enemy enters this zone, it will attack us immediately.
- Detection zones 3 and 4: The enemy will enter hunt/chase mode. It will be able to go around walls, and we will have to either kill it or move quickly to make it lose us. Views
- Detection Zone 5: It doesn't exist because it's always present in the game (represented by the white squares in the video). In this detection mode, the enemy enters idle or patrol mode if our detection level exceeds 45%.
Automata
| Status | In development |
| Author | IndeWilly |
| Genre | Shooter |
More posts
- First mechanic (the shooting system )42 days ago
- A new adventure begins42 days ago
Leave a comment
Log in with itch.io to leave a comment.