Enemy Patrolling Technique for game developers / How to make enemies walk freely
in this video you will learn how to make enemies walk to a side and turn back and forth based on distance calculation.
i used the x position of each enemies has startingPoint and i add the x position of each of them to their width * a certain amount as their stopDistance .
In this tutorial i used a library named canvasGameJs
here's the link :
github.com/JcerelusDev/canvas00
#enemypatrolling #devlog #enemyAi
21 май 2023