(Solved) How do I prevent infinite loop?

How do I…

Prevent the score from increasing indefinitely.

What is the expected result

As a player, when I drag and drop a new Tile, AND if it is above Y = 373,
Then the score “GlobalScore” should increase by 10

This should happen for each instance of tile.

What is the actual result

The score is increasing indefinitely.

If I use “Trigger only once”, the score increases only once but does not occur for the next instance.

Hiya Ramen. One way to do this would be to add a condition to the y position of Tiles is greater than 373, the Tiles Bool Scored is False, then add 10 to the global score, update the text and set the Bool Scored to True.

I’m not positive you need a “repeat for each” with a “was just dropped” condition. You should test without to make sure.

Thank you so much for responding on Sunday! Your solution worked.
Wouldn’t have been able to do it without your help!

You most certainly would have thought of a solution without any help at all, eventually. But yes it can be quicker to air a problem in the forum while you work on more amenable events in the project.