How to add invincibility frames to a spike tile?

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
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)

1 Like

This work.

1 Like

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