# This is so stressful omg

**URL:** <https://forum.makecode.com/t/this-is-so-stressful-omg/35639>\
**Category:** Help\
**Tags:** game\
**Created:** [April 13, 2025, 12:13am UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639 "2025-04-13T00:13:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Makecoder123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/makecoder123/32/30686_2.png) [@Makecoder123](https://forum.makecode.com/u/Makecoder123)\
**Post date:** [April 13, 2025, 12:13am UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639/1 "2025-04-13T00:13:02Z")

</div>

**When the condition is true the code is _running forever_.**  
I need to know how to make this code run _ **only one time** _

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/7/0740c5841ec6747f066408a49e3e377033809ff9.png)  
I hope this gets answered -Makecoder123

---

<div class="post-metadata">

**Author:** ![Longlinh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/longlinh/32/6525_2.png) [@Longlinh](https://forum.makecode.com/u/Longlinh)\
**Post date:** [April 13, 2025, 5:26am UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639/2 "2025-04-13T05:26:27Z")

</div>

Change the tile to something else as the first thing to be triggered. Or, do a “if true then trigger it to false” as the first thing triggered.

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [April 13, 2025, 5:27am UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639/3 "2025-04-13T05:27:42Z")

</div>

Use a true/false variable that is set to “false” on game start.  
Add an “and” boolean and add a “not” to the 2nd empty space (what is it called again?) and insert the true/false variable as an cylinder shape into it.  
Now the put variable in block shape at the top of all the code, set it to “true”

If it doesn’t make any sense I can give you an image of it.

---

<div class="post-metadata">

**Author:** ![CodeOnTheCob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codeonthecob/32/19306_2.png) [@CodeOnTheCob](https://forum.makecode.com/u/CodeOnTheCob)\
**Post date:** [April 13, 2025, 5:28am UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639/4 "2025-04-13T05:28:28Z")

</div>

tp him to a square away from the block

---

<div class="post-metadata">

**Author:** ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)\
**Post date:** [April 13, 2025, 5:29am UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639/5 "2025-04-13T05:29:37Z")

</div>

Maybe have a variable for the overlap, if the variable == 1 do the code and set the variable to 0. That is probably the best way

---

<div class="post-metadata">

**Author:** ![Makecoder123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/makecoder123/32/30686_2.png) [@Makecoder123](https://forum.makecode.com/u/Makecoder123)\
**Post date:** [April 14, 2025, 5:54pm UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639/6 "2025-04-14T17:54:34Z")

</div>

Sorry that is not helpful, this is a level based game and if i do that the player needs to go to the other level. Also the image of the code was for other topic so i published the correct one in this topic

---

<div class="post-metadata">

**Author:** ![Makecoder123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/makecoder123/32/30686_2.png) [@Makecoder123](https://forum.makecode.com/u/Makecoder123)\
**Post date:** [April 14, 2025, 5:54pm UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639/7 "2025-04-14T17:54:50Z")

</div>

Im sorry this isn’t the correct image i was going to use it for another topic so the correct image is here.

 ![Captura de pantalla 2025-04-14 115059](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/3/c3c8cea2db1426ba9be0ffc531e0712c199392ef.png)

---

<div class="post-metadata">

**Author:** ![Makecoder123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/makecoder123/32/30686_2.png) [@Makecoder123](https://forum.makecode.com/u/Makecoder123)\
**Post date:** [April 14, 2025, 6:25pm UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639/8 "2025-04-14T18:25:04Z")

</div>

Yes give an image i didn’t understand it but i get it

---

<div class="post-metadata">

**Author:** ![Makecoder123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/makecoder123/32/30686_2.png) [@Makecoder123](https://forum.makecode.com/u/Makecoder123)\
**Post date:** [April 14, 2025, 6:25pm UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639/9 "2025-04-14T18:25:11Z")

</div>

No, the block is to make sure it happens only there and the tile is in the whole level (its a level based game) and the other level is different so i don’t want to make it automatically complete the level

---

<div class="post-metadata">

**Author:** ![Dvplayzty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dvplayzty/32/22324_2.png) [@Dvplayzty](https://forum.makecode.com/u/Dvplayzty)\
**Post date:** [April 14, 2025, 8:22pm UTC](https://forum.makecode.com/t/this-is-so-stressful-omg/35639/10 "2025-04-14T20:22:17Z")

</div>

Make a variable. Set the value to 1. Add if the variable is = to 1 then. before the 30000ms add a variable set to 0.
