AI AI AI

Trying to get enemy AI working is proving to be a huge headache.

Trying to piece together different states and get them all working is more complicated than I thought it would be!  Re-wrote it and that helped a bit, but still having problems with the pathfinding system.  If there’s more than one enemy the target point goes off and I can’t figure out why.

Wish Unity had a 2D navmesh system built in.  Looked around and tried some assets but not having much look.

To build or to buy?

After a few weeks off (because of working overtime and holiday) I’m back to working on my game.

Currently trying to get an enemy patrol system working and while I’m sure with perseverance I’d be able to get it, questioning whether I should just buy something from the Asset Store.  On the one hand its good to learn, on the other hand perhaps I can learn from picking apart.  Part of me is always worried I’ll find something coincidentally without really knowing what it does.

Enemy Movement Test

Started working on a game idea I had. Got the enemies up and running in the sense that they can:

  • Move in a random direction (vertical, horizontal or diagonal) at a random speed
  • Rotate randomly
  • Spot the player (although nothing happens at the moment)

Obviously still more needs to be done as ultimately they’d need to do something when they spot the player, not bump into each other/map boundaries etc but it’s a good start.

Felt like uploading the video as it looks kind of weird. Or I’m easily amused at the moment.

[youtube https://www.youtube.com/watch?v=xHB9kX9refs]

Scroll To Top