# Repositioning sprite

**URL:** <https://forum.makecode.com/t/repositioning-sprite/3450>\
**Category:** Help\
**Created:** [September 14, 2020, 4:48am UTC](https://forum.makecode.com/t/repositioning-sprite/3450 "2020-09-14T04:48:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezzamanezza](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@ezzamanezza](https://forum.makecode.com/u/ezzamanezza)\
**Post date:** [September 14, 2020, 4:48am UTC](https://forum.makecode.com/t/repositioning-sprite/3450/1 "2020-09-14T04:48:43Z")

</div>

Hey everyone,

Please help. How do I get my sprite to reposition in a specific spot after it dies? I don’t know the x and y numbers. How do I do this? Thank you 😃

---

<div class="post-metadata">

**Author:** ![LcAtonal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lcatonal/32/16800_2.png) [@LcAtonal](https://forum.makecode.com/u/LcAtonal)\
**Post date:** [September 14, 2020, 6:22am UTC](https://forum.makecode.com/t/repositioning-sprite/3450/2 "2020-09-14T06:22:42Z")

</div>

If the enemy is not destroyed, the game ends. The reason is because it is still counted as overlapping it. If you put the sprite that take damaged somewhere or destroy the sprite, you will not lose instantly.

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [September 14, 2020, 12:28pm UTC](https://forum.makecode.com/t/repositioning-sprite/3450/3 "2020-09-14T12:28:56Z")

</div>

Could you link the game? There could be several reasons why this is happening depending on the code.

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [September 14, 2020, 12:49pm UTC](https://forum.makecode.com/t/repositioning-sprite/3450/4 "2020-09-14T12:49:35Z")

</div>

Arcade is fast. So fast, that when you overlap a sprite, it runs the subtract 1 heart code many times per a second, so it looks like you lose instantly. If you destroy the sprite, then it will only subtract 1 heart before disappearing.

Like in Minecraft, when a zombie touches you, you get knocked back a bit. If you didn’t get knocked back, you would keep losing health until you, or the monsters dies or moves away.

---

<div class="post-metadata">

**Author:** ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)\
**Post date:** [September 14, 2020, 1:42pm UTC](https://forum.makecode.com/t/repositioning-sprite/3450/5 "2020-09-14T13:42:00Z")

</div>

You have to do this

 ![2020-09-14 (1)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/bd4858d322c4bdde5fd606b780cf887440e47036.png)

---

<div class="post-metadata">

**Author:** ![ethan](https://avatars.discourse-cdn.com/v4/letter/e/8dc957/32.png) [@ethan](https://forum.makecode.com/u/ethan)\
**Post date:** [January 12, 2024, 5:46pm UTC](https://forum.makecode.com/t/repositioning-sprite/3450/6 "2024-01-12T17:46:49Z")

</div>

well no you can touch them but you will only take damage when the play their attack animation. unlike the player they have a attack cooldown

---

<div class="post-metadata">

**Author:** ![ethan](https://avatars.discourse-cdn.com/v4/letter/e/8dc957/32.png) [@ethan](https://forum.makecode.com/u/ethan)\
**Post date:** [September 24, 2024, 4:48pm UTC](https://forum.makecode.com/t/repositioning-sprite/3450/7 "2024-09-24T16:48:19Z")

</div>

Actually I was wrong, in java edition the player does infact have a attack cooldown, I’m a bedrock player so I didn’t know
