# How to add invincibility frames to a spike tile?

**URL:** <https://forum.makecode.com/t/how-to-add-invincibility-frames-to-a-spike-tile/31525>\
**Category:** Help\
**Created:** [November 5, 2024, 5:34pm UTC](https://forum.makecode.com/t/how-to-add-invincibility-frames-to-a-spike-tile/31525 "2024-11-05T17:34:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SanicSpeedy21](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sanicspeedy21/32/17917_2.png) [@SanicSpeedy21](https://forum.makecode.com/u/SanicSpeedy21)\
**Post date:** [November 5, 2024, 5:34pm UTC](https://forum.makecode.com/t/how-to-add-invincibility-frames-to-a-spike-tile/31525/1 "2024-11-05T17:34:03Z")

</div>

I’m trying to add invincibility frames to a tile that is supposed to hurt you. I tried to do the same thing for regular sprites but it pauses the game and you get soft locked to dying.  
Game here: [https://makecode.com/\_DFuXqqJMjbXu](https://makecode.com/_DFuXqqJMjbXu)  
If you can send an image or a small game showing the code, that would be great.  
(recommend time for the invincibility frames are 1.5 seconds or 1500 milliseconds)

---

<div class="post-metadata">

**Author:** ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)\
**Post date:** [November 6, 2024, 3:11pm UTC](https://forum.makecode.com/t/how-to-add-invincibility-frames-to-a-spike-tile/31525/2 "2024-11-06T15:11:28Z")

</div>

> **[Platformers with stun](https://arcade.makecode.com/S83082-82798-15614-24449)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

This work.

---

<div class="post-metadata">

**Author:** ![SanicSpeedy21](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sanicspeedy21/32/17917_2.png) [@SanicSpeedy21](https://forum.makecode.com/u/SanicSpeedy21)\
**Post date:** [November 7, 2024, 12:08am UTC](https://forum.makecode.com/t/how-to-add-invincibility-frames-to-a-spike-tile/31525/3 "2024-11-07T00:08:46Z")

</div>

Thanks a lot! I don’t really know how to use the Timer Blocks so thanks again.
