# Dungeon obstacle

**URL:** <https://forum.makecode.com/t/dungeon-obstacle/9522>\
**Category:** Help\
**Created:** [August 4, 2021, 6:02am UTC](https://forum.makecode.com/t/dungeon-obstacle/9522 "2021-08-04T06:02:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gemerson](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@Gemerson](https://forum.makecode.com/u/Gemerson)\
**Post date:** [August 4, 2021, 6:02am UTC](https://forum.makecode.com/t/dungeon-obstacle/9522/1 "2021-08-04T06:02:25Z")

</div>

Good day guys, my query is the following, I did an animation of a barbed trap and I want that when the barbs are up they take away his life and when they are down they don’t take away his life and let my character go free.I reviewed the project of master ricardo, dungeon, but it is so extensive that I did not understand him very well as he did. I hope you can help me.

 ![20210802_211713](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/98f68fdd657e653d29d9ddf8029d7f2ec78b4568.jpeg)

---

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [August 4, 2021, 4:29pm UTC](https://forum.makecode.com/t/dungeon-obstacle/9522/2 "2021-08-04T16:29:55Z")

</div>

I think i can solve this, just link the project and i will try to solve.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [August 4, 2021, 4:30pm UTC](https://forum.makecode.com/t/dungeon-obstacle/9522/3 "2021-08-04T16:30:23Z")

</div>

Check out this simple code:

> **[test](https://arcade.makecode.com/66832-16985-91385-91087)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Gemerson](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@Gemerson](https://forum.makecode.com/u/Gemerson)\
**Post date:** [August 4, 2021, 5:54pm UTC](https://forum.makecode.com/t/dungeon-obstacle/9522/4 "2021-08-04T17:54:27Z")

</div>

Thanks, that’s exactly what I needed.👏🏻👏🏻
