# Creating a "Chase" Game

**URL:** <https://forum.code.org/t/creating-a-chase-game/26423>\
**Category:** Coding and Debugging Help\
**Created:** [April 17, 2019, 8:46pm UTC](https://forum.code.org/t/creating-a-chase-game/26423 "2019-04-17T20:46:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarvin](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jarvin](https://forum.code.org/u/jarvin)\
**Post date:** [April 17, 2019, 8:46pm UTC](https://forum.code.org/t/creating-a-chase-game/26423/1 "2019-04-17T20:46:26Z")

</div>

I could use a hint on a code block suggestion. I have a student who is working on a game and wants an “enemy” to chase the player as the player moves around. Is there a code block or a combination of blocks that would help accomplish that? We are working with Computer Science Discoveries and with the Game Lab

---

<div class="post-metadata">

**Author:** ![edavis](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/edavis/32/4927_2.png) [@edavis](https://forum.code.org/u/edavis)\
**Post date:** [April 18, 2019, 12:34am UTC](https://forum.code.org/t/creating-a-chase-game/26423/2 "2019-04-18T00:34:05Z")

</div>

Could you share the code for the student’s project or were you asking more generally?

---

<div class="post-metadata">

**Author:** ![jarvin](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jarvin](https://forum.code.org/u/jarvin)\
**Post date:** [April 18, 2019, 12:46am UTC](https://forum.code.org/t/creating-a-chase-game/26423/3 "2019-04-18T00:46:14Z")

</div>

More of a general question. Wondering if there is a way to make an object move toward another object, even if the second object is in motion.

---

<div class="post-metadata">

**Author:** ![elizabeth\_admin](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@elizabeth\_admin](https://forum.code.org/u/elizabeth_admin)\
**Post date:** [April 18, 2019, 5:56am UTC](https://forum.code.org/t/creating-a-chase-game/26423/4 "2019-04-18T05:56:08Z")

</div>

Hi, check out this thread: [Can you make a sprite chase another sprite?](https://forum.code.org/t/can-you-make-a-sprite-chase-another-sprite/21621/8)

It may address what you’re looking for.

Elizabeth
