# Enemy ay acelleration

**URL:** <https://forum.makecode.com/t/enemy-ay-acelleration/11051>\
**Category:** Help\
**Created:** [November 24, 2021, 12:18am UTC](https://forum.makecode.com/t/enemy-ay-acelleration/11051 "2021-11-24T00:18:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [November 24, 2021, 12:18am UTC](https://forum.makecode.com/t/enemy-ay-acelleration/11051/1 "2021-11-24T00:18:33Z")

</div>

Is there a way of enemy follow the player but with ay acelleration 500?

---

<div class="post-metadata">

**Author:** ![Grimm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/grimm/32/5507_2.png) [@Grimm](https://forum.makecode.com/u/Grimm)\
**Post date:** [November 24, 2021, 4:24pm UTC](https://forum.makecode.com/t/enemy-ay-acelleration/11051/2 "2021-11-24T16:24:26Z")

</div>

In the game maker tutorial there’s a platformer tutorial that shows you how too.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [November 29, 2021, 5:08pm UTC](https://forum.makecode.com/t/enemy-ay-acelleration/11051/3 "2021-11-29T17:08:59Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/811fda146e4fb598131b54d8258dcea0a7352dc7.png)  
This should work

---

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [November 30, 2021, 11:22pm UTC](https://forum.makecode.com/t/enemy-ay-acelleration/11051/4 "2021-11-30T23:22:12Z")

</div>

Is othersprite the enemy or the player?

---

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [December 1, 2021, 12:12am UTC](https://forum.makecode.com/t/enemy-ay-acelleration/11051/5 "2021-12-01T00:12:54Z")

</div>

It didn’t worked.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [December 1, 2021, 3:40pm UTC](https://forum.makecode.com/t/enemy-ay-acelleration/11051/6 "2021-12-01T15:40:51Z")

</div>

Othersprite is the enemy. The reason why it probably didn’t work was because it didn’t have code to make it stop at a certain point. Maybe try this at the end:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/bdf1c6c5fd8b043ac7bd0e9c3e05c11029d5823f.png)
