Home Creators Posts Import Register Favorites Logout

Content

A few people have observed that the enemies sometimes "attack you through door" or even "ambushes" you by doing things like "hiding near the walls."

The reason for those behavior is that the AI only knew how to move in a straight line towards the player. This works pretty well for large open terrains, but in something more confined, such as a maze, the AI will frequently get stuck. 

Hence, the need for path finding. So the next time the boss kills you, rather than getting stuck somewhere, she may now chooses to hunt you down, even if you are hiding in the spawn. :D

Gif demonstration:

Files

Comments

Kian

Isint that what she was doing already, i would die and spawn and she would still be accurately following me

Verdonator

Good job, just need to make it dynamic if you plan on blocking their paths like you did in the GIF. If the path becomes blocked, recalculate pathing from current position.

Enlit3D

She probably gotten lucky.

Enlit3D

Yeah, there will certainly be something similar to that in place.