Hey all,
So I have based a lot of my code on Shaun Spalding's RPG Tutorial video series.
Specifically, in this case, I have an enemy state machine that my enemy will have access to outlining an Idle state, an aggro radius, and a chase state.
I also have a tutorial up by heartbeat outlining how to make a basic pathfinding system where the enemy follows your mouse clicks.
My questions are two-fold I suppose:
1. using mp_grid_instances or mp_grid_cell is there anyway to have a specific tile layer be considered when deciding which cells are occupied when the enemy moves.
2. Does anyone see a good way to reconcile these two movement codes. I need to be able to regulate my enemy's state through a state machine, but im having a hard time wrapping my head around doing a pathfinding system that chases the player with a state machine in mind. Maybe I'm just dumb idk.
So I have based a lot of my code on Shaun Spalding's RPG Tutorial video series.
Specifically, in this case, I have an enemy state machine that my enemy will have access to outlining an Idle state, an aggro radius, and a chase state.
I also have a tutorial up by heartbeat outlining how to make a basic pathfinding system where the enemy follows your mouse clicks.
My questions are two-fold I suppose:
1. using mp_grid_instances or mp_grid_cell is there anyway to have a specific tile layer be considered when deciding which cells are occupied when the enemy moves.
2. Does anyone see a good way to reconcile these two movement codes. I need to be able to regulate my enemy's state through a state machine, but im having a hard time wrapping my head around doing a pathfinding system that chases the player with a state machine in mind. Maybe I'm just dumb idk.