This is so stressful omg

When the condition is true the code is running forever.
I need to know how to make this code run only one time


I hope this gets answered -Makecoder123

3 Likes

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.

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.

tp him to a square away from the block

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

1 Like

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

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

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

1 Like

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

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.