I want to enemy follow player around walls until seing the player from a distance. I give two boolen to enemy.
1- i saw you
2- i am seeing you
What i am tring to do is When a enemy saw player once and isnt seeing current moment, patchfind to player until see player again. Please Help
Ps: I am not native english speaker. Sorry for my mistakes.
Use the pathfinding behaviour.
Var_ISawYou=True
Var_IAsmSeeingYou=False
then
Every X seconds find path to player.X,player.Y
On Path found - Move along path
Develop games in your browser. Powerful, performant & highly capable.
Use the pathfinding behaviour. Var_ISawYou=True Var_IAsmSeeingYou=False then Every X seconds find path to player.X,player.Y On Path found - Move along path
Thanks for reply my friend. It does the job.