Closed K-Mistele closed 6 years ago
Problems:
Fixed pursue bug, now working on collisions.
Found a fix thanks to @Michael-N, will be working on this soon.
Player can no longer move on top of monsters
Working on the last bug soon!
@Michael-N switch to branch mob-AI-gameplay-combat
. Code for mob chasing etc. is working, but the mobs aren't moving. One of the conditionals in monster.chase()
must be evaluating false. Any thoughts? I've checked all the functions and can't find an answer.
Ha. Squashed it. It was checking to see if any mobs shared the x coordinate OR the y coordinate of where it was trying to move, and it was checking all the mobs in world.monsters
. It was essentially colliding with itself. @Michael-N
Some strange mob tracking behavior, especially near player. Possibly a reversed x-direction in the AI, will look into farther.