# Enemy moves/attacks

**URL:** https://forum.makecode.com/t/enemy-moves-attacks/19576
**Category:** Help
**Tags:** game
**Created:** [May 1, 2023, 6:45pm UTC](https://forum.makecode.com/t/enemy-moves-attacks/19576 "2023-05-01T18:45:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BoBcat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bobcat/32/13956_2.png) [@BoBcat](https://forum.makecode.com/u/BoBcat)
#### Post date: [May 1, 2023, 6:45pm UTC](https://forum.makecode.com/t/enemy-moves-attacks/19576/1 "2023-05-01T18:45:06Z")

</div>

I am making a game called Silent shadow. I have only started it and I need help to make enemies to move and attack randomly (like an NPC).Has anyone got any advice to help me with this? By the way, in this game there will be multiple waves and enemies.

> **[Silent shadow(Beta)](https://arcade.makecode.com/S39874-28063-80035-35347)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![DangerNoodle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dangernoodle/32/14797_2.png) [@DangerNoodle](https://forum.makecode.com/u/DangerNoodle)
#### Post date: [May 1, 2023, 10:04pm UTC](https://forum.makecode.com/t/enemy-moves-attacks/19576/2 "2023-05-01T22:04:30Z")

</div>

well, you don’t lose any lives, good work on the gun mechanics, but that’s all I know.

---

<div class="post-metadata">

### Author: ![BoBcat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bobcat/32/13956_2.png) [@BoBcat](https://forum.makecode.com/u/BoBcat)
#### Post date: [May 2, 2023, 4:25pm UTC](https://forum.makecode.com/t/enemy-moves-attacks/19576/3 "2023-05-02T16:25:40Z")

</div>

OK, all I need to work out is how enemies attack and do stuff randomly

---

<div class="post-metadata">

### Author: ![BoBcat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bobcat/32/13956_2.png) [@BoBcat](https://forum.makecode.com/u/BoBcat)
#### Post date: [March 6, 2024, 9:03pm UTC](https://forum.makecode.com/t/enemy-moves-attacks/19576/4 "2024-03-06T21:03:21Z")

</div>

cant lie I kinda scrapped this project to focus on another one
