1. Islands of the Caliph
  2. News
  3. Game Demo Updated to Version 0.4.9

Game Demo Updated to Version 0.4.9

Spiders and other enemies were behaving poorly ... they were not attacking the player when they should have, and occasionally they had the audacity to move off grid!

So the two problems turned out to be linked. There was a bug that allowed enemies to move slightly off the 16x16 unit grid by a unit of 1. This was not obvious at all visually so it went unnoticed for a long time.

Also, if the player was not spending a lot of time exploring, the bug would not always manifest itself, so tests failed to reproduce the issue until I spent a lot of time just wandering around.

Well being off the grid slightly also caused the enemies to fail the distance check against the player, and if the player was standing at certain positions compared to the enemy, they would not even attack, though it appeared they were in position to do so.

Fixing the grid bug appears to have also fixed the attack bug, so I hope players can enjoy the game more without encountering this.