Top Down Shooter Enemy AI to walk around walls

Hey guys! I’m working on a 2D top-down shooter and I’m trying to get my enemies to walk around walls but I can’t seem to figure out how to do this. Any help would be appreciated!

You’ll need a path finder which allows you to set the conditions on a successful path. You can either code it yourself or there are various ones you can use. Usually the successful path is to reach point x,y but in your case you’d want the path to be successful when they reach a point where they have line of sight on the player and can fire on them. Besides that oddity, it can still use most the usual path finding logic. In theory it isn’t absolutely optimal but it should be good enough.

Yeah either you gonna have to write your own pathfinding or you can try some of the free ones out there I know a free one called A* pathfinding by Aron Grangberg that is pretty advance that I tend to use myself though depending how complex you need it to be you might need to write your own