Pathfinding enemy

I was wondering if there was a way to make an enemy chase you around a house and not go through walls or crash into them. It would be really cool and if its possible please tell me how. thank you

2 Likes

hi @KGregory_14495
there is not any way i know about to make an enemy pathfind but you can make it so that the “enemy” will go around the wall where the route is quickest to get to the player here is an example CoSpaces Edu :: pathfinding enemy

-Isaac

1 Like

I can think of a way, but it’s complicated: log xy coordinates of Camera every x seconds, and if the enemy can’t “see” the Camera (using RayCast), move it to the nearest coordinate until it can (or something like that).