# Enemy movement through maze

**URL:** <https://forum.makecode.com/t/enemy-movement-through-maze/20071>\
**Category:** Help\
**Created:** [May 19, 2023, 7:58pm UTC](https://forum.makecode.com/t/enemy-movement-through-maze/20071 "2023-05-19T19:58:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)\
**Post date:** [May 22, 2023, 2:49am UTC](https://forum.makecode.com/t/enemy-movement-through-maze/20071/3 "2023-05-22T02:49:15Z")

</div>

Your student can use an extension such as the [Tilemap Path Finding ( a\* ) (beta)](https://forum.makecode.com/t/tilemap-path-finding-a-beta/1846) to make the ghost get to pac-man. As far as I know, the green and the pink ghosts chase him in the most direct way, while the cyan one focuses on a point 30 pixels behind pac-man, and the orange one is completely random.

---

_[View the full topic](https://forum.makecode.com/t/enemy-movement-through-maze/20071)._
