# Enemy help troubles

**URL:** https://forum.makecode.com/t/enemy-help-troubles/42749
**Category:** Help
**Tags:** game
**Created:** [March 18, 2026, 10:50pm UTC](https://forum.makecode.com/t/enemy-help-troubles/42749 "2026-03-18T22:50:41Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![bbones](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bbones/32/30109_2.png) [@bbones](https://forum.makecode.com/u/bbones)
#### Post date: [March 18, 2026, 10:50pm UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/1 "2026-03-18T22:50:41Z")

</div>

my enemies keep floating in my plat former game and I tried to set their ay acceleration to 300 but it wont work can anyone help?

---

<div class="post-metadata">

### Author: ![xInsqne1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/xinsqne1/32/34060_2.png) [@xInsqne1](https://forum.makecode.com/u/xInsqne1)
#### Post date: [March 19, 2026, 12:36am UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/2 "2026-03-19T00:36:51Z")

</div>

Sure! Let me at the code and I will _ **bea-** ahem_ I mean politely restrain it into working.

---

<div class="post-metadata">

### Author: ![1978monkeynutze](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/1978monkeynutze/32/33979_2.png) [@1978monkeynutze](https://forum.makecode.com/u/1978monkeynutze)
#### Post date: [March 19, 2026, 12:39am UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/3 "2026-03-19T00:39:37Z")

</div>

could you show the link for the game then I can help

---

<div class="post-metadata">

### Author: ![not\_a\_lemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not_a_lemon/32/35289_2.png) [@not\_a\_lemon](https://forum.makecode.com/u/not_a_lemon)
#### Post date: [March 19, 2026, 12:39am UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/4 "2026-03-19T00:39:40Z")

</div>

Send the project and I can try to help

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 19, 2026, 12:43am UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/5 "2026-03-19T00:43:04Z")

</div>

Could you send the link? That way people can look inside and find the problem.

Also welcome to the community!

---

<div class="post-metadata">

### Author: ![bbones](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bbones/32/30109_2.png) [@bbones](https://forum.makecode.com/u/bbones)
#### Post date: [March 19, 2026, 1:08am UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/6 "2026-03-19T01:08:20Z")

</div>

[https://arcade.makecode.com/S94135-24969-09383-63682](https://arcade.makecode.com/S94135-24969-09383-63682) here is the code

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 19, 2026, 2:09am UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/7 "2026-03-19T02:09:23Z")

</div>

Your code doesn’t have any enemies in it, maybe you sent the wrong link?

---

<div class="post-metadata">

### Author: ![xInsqne1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/xinsqne1/32/34060_2.png) [@xInsqne1](https://forum.makecode.com/u/xInsqne1)
#### Post date: [March 19, 2026, 2:09am UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/8 "2026-03-19T02:09:30Z")

</div>

I don’t think I see the issue. Your using sprites then setting them on the tile… which sounds like what you want them to do…

---

<div class="post-metadata">

### Author: ![xInsqne1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/xinsqne1/32/34060_2.png) [@xInsqne1](https://forum.makecode.com/u/xInsqne1)
#### Post date: [March 19, 2026, 2:12am UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/9 "2026-03-19T02:12:36Z")

</div>

A reply to my reply, make sure you’re also setting the locations correctly! That might cause it to act like they are floating.

---

<div class="post-metadata">

### Author: ![bbones](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bbones/32/30109_2.png) [@bbones](https://forum.makecode.com/u/bbones)
#### Post date: [March 19, 2026, 5:26pm UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/10 "2026-03-19T17:26:37Z")

</div>

my apologies here is the updated link [https://arcade.makecode.com/S94135-24969-09383-63682](https://arcade.makecode.com/S94135-24969-09383-63682)

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 20, 2026, 12:23am UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/11 "2026-03-20T00:23:08Z")

</div>

Here ya go!

> **[PLATFORMER W.I.P.](https://arcade.makecode.com/S35958-58748-10885-00316)**
>
> cool platformer

I just added a simple variable called CanMove? and the game constantly checks if the variable is true. If it is, it will make the variable move in the direction of the sprite. You can check out the code yourself; it should be simple enough for you to understand.

---

<div class="post-metadata">

### Author: ![bbones](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bbones/32/30109_2.png) [@bbones](https://forum.makecode.com/u/bbones)
#### Post date: [March 20, 2026, 1:45am UTC](https://forum.makecode.com/t/enemy-help-troubles/42749/12 "2026-03-20T01:45:35Z")

</div>

Omg thank you so much this will help a lot 🙂
