Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

DAY 13

Today I made decent progress on getting enemy AI working. The idea is when an enemy spawns it's supposed to randomly choose between all the barricades set up in front of the player and walk towards one of them, then start dealing damage over time to the barricade once it reaches it (then once the barricade is destroyed that enemy "breaks through" and runs over to the player, killing them if they reach the player). I'm just starting on the "spawning and randomly choosing a barricade and walking over to it" part, though it's a bit buggy and I can't figure out why. I implemented a similar AI setup in a different Unreal project and referenced it heavily while working on this one, but for some reason the enemies only seem to actually move towards the barricades sometimes, seemingly depending on the barricade's location (like, just moving a barricade a little over to the left will get enemies to walk toward it, even though it was already within their Sight radius in its original position). No idea what's wrong with it but I'll be working on getting it fully functional in the next few days.