# Lose hp after a specific animation frame end's

**URL:** <https://forum.makecode.com/t/lose-hp-after-a-specific-animation-frame-ends/28194>\
**Category:** Help\
**Created:** [April 11, 2024, 4:52pm UTC](https://forum.makecode.com/t/lose-hp-after-a-specific-animation-frame-ends/28194 "2024-04-11T16:52:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Striker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/striker/32/14553_2.png) [@Striker](https://forum.makecode.com/u/Striker)\
**Post date:** [April 11, 2024, 4:52pm UTC](https://forum.makecode.com/t/lose-hp-after-a-specific-animation-frame-ends/28194/1 "2024-04-11T16:52:52Z")

</div>

Hello, I’m mostly new to makecode, Currently making a battle cats type game but i want the damage to be received after a specific animation frame happens, how can i do this?  
Here’s the game:

> **[Battle cats:PvP](https://arcade.makecode.com/S63761-94119-11437-94107)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Mega0star01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mega0star01/32/14784_2.png) [@Mega0star01](https://forum.makecode.com/u/Mega0star01)\
**Post date:** [April 11, 2024, 5:17pm UTC](https://forum.makecode.com/t/lose-hp-after-a-specific-animation-frame-ends/28194/2 "2024-04-11T17:17:04Z")

</div>

well you can use timer extension.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [April 11, 2024, 5:17pm UTC](https://forum.makecode.com/t/lose-hp-after-a-specific-animation-frame-ends/28194/3 "2024-04-11T17:17:13Z")

</div>

Just put an after (frame rate \* frame total)ms block (timer extension)

---

<div class="post-metadata">

**Author:** ![Striker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/striker/32/14553_2.png) [@Striker](https://forum.makecode.com/u/Striker)\
**Post date:** [April 11, 2024, 8:00pm UTC](https://forum.makecode.com/t/lose-hp-after-a-specific-animation-frame-ends/28194/4 "2024-04-11T20:00:06Z")

</div>

@Luke thank you!

---

<div class="post-metadata">

**Author:** ![InvalidProject](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/invalidproject/32/32554_2.png) [@InvalidProject](https://forum.makecode.com/u/InvalidProject)\
**Post date:** [April 11, 2024, 9:37pm UTC](https://forum.makecode.com/t/lose-hp-after-a-specific-animation-frame-ends/28194/5 "2024-04-11T21:37:45Z")

</div>

I love this game so far! I can’t wait to see more!!
