# How to clone my enemies and make them do the same actions?

**URL:** <https://forum.makecode.com/t/how-to-clone-my-enemies-and-make-them-do-the-same-actions/33441>\
**Category:** Help\
**Tags:** game\
**Created:** [January 27, 2025, 11:52pm UTC](https://forum.makecode.com/t/how-to-clone-my-enemies-and-make-them-do-the-same-actions/33441 "2025-01-27T23:52:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waddling](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@Waddling](https://forum.makecode.com/u/Waddling)\
**Post date:** [January 27, 2025, 11:52pm UTC](https://forum.makecode.com/t/how-to-clone-my-enemies-and-make-them-do-the-same-actions/33441/1 "2025-01-27T23:52:44Z")

</div>

Im having a problem with my game, im trying to make multiple of the Stabber Sprite and make them all spawn on the STB Tile, Run right and turn when hitting a Red circle block, and take damage from the player character’s attack. Any help or tips? Game:

 ![arcade-Nin-Monochrome-Mafia](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/c/1c4a0d9a84b4f938498ceb9b4c8ca4b38b2ce5d9.png)

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [January 27, 2025, 11:55pm UTC](https://forum.makecode.com/t/how-to-clone-my-enemies-and-make-them-do-the-same-actions/33441/2 "2025-01-27T23:55:00Z")

</div>

(For anyone else who wants to help, here’s a direct link: [https://makecode.com/\_bKaMocWtLW33](https://makecode.com/_bKaMocWtLW33))

@Waddling Have you tried using the `on created` block? It can help you do the same things to a lot of sprites of the same type, even when they’re being generated at different times or in different ways.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/c/1c7b2e39b3c48b4451098297289d18807ce53b6f.png)

---

<div class="post-metadata">

**Author:** ![Ima.notarobot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ima.notarobot/32/26551_2.png) [@Ima.notarobot](https://forum.makecode.com/u/Ima.notarobot)\
**Post date:** [January 28, 2025, 12:01am UTC](https://forum.makecode.com/t/how-to-clone-my-enemies-and-make-them-do-the-same-actions/33441/3 "2025-01-28T00:01:05Z")

</div>

here is a post that helped me: [How to make clones move left and right](https://forum.makecode.com/t/how-to-make-clones-move-left-and-right/31645)

---

<div class="post-metadata">

**Author:** ![Waddling](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@Waddling](https://forum.makecode.com/u/Waddling)\
**Post date:** [January 28, 2025, 6:08pm UTC](https://forum.makecode.com/t/how-to-clone-my-enemies-and-make-them-do-the-same-actions/33441/4 "2025-01-28T18:08:04Z")

</div>

Its not working for me:

 ![arcade-Nin-Monochrome-Mafia (1)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/f/e/feff9feb8b690d07f15adfa214bafca8f2be25ca.png)

---

<div class="post-metadata">

**Author:** ![Slimey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/slimey/32/27894_2.png) [@Slimey](https://forum.makecode.com/u/Slimey)\
**Post date:** [October 6, 2025, 8:25pm UTC](https://forum.makecode.com/t/how-to-clone-my-enemies-and-make-them-do-the-same-actions/33441/5 "2025-10-06T20:25:34Z")

</div>

just do this, this works fine.

 ![Screenshot 2025-10-06 6.26.44 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/9/d90a9b2459bbf59c9b2d2db67a595b48034ab826.png)

---

<div class="post-metadata">

**Author:** ![Slimey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/slimey/32/27894_2.png) [@Slimey](https://forum.makecode.com/u/Slimey)\
**Post date:** [October 6, 2025, 8:25pm UTC](https://forum.makecode.com/t/how-to-clone-my-enemies-and-make-them-do-the-same-actions/33441/6 "2025-10-06T20:25:36Z")

</div>

it turns the sprites into a list and then it repeats the length of the list the code and i think you understand.

i dont know how to clone normally, so do you know?
