How do I avoid cook dependency loops?

Alright, so, I’m trying to make this interactive game that uses a mask generated from a camera to detect coins. When it detects the collection of a coin it uses that input to generate new coordinates for the coin, and that’s supposed to repeat indefinetely till the timer runs out.

problem is, when I just straight up do that with tops and no code, it recognizes the layout as a cook dependency loop, and locks up.
It occasionally works when I change the unit of the radius of the uh… motion detection circle after opening the file. I think that’s a bug, though, and I’d rather learn ways to avoid it than ways to work around it.

I am experienced with coding, but I prefer to avoid it, and I don’t know python yet. If that’s the best practice for situations like this I’ll do it, though.

(Apparently I can’t upload files yet? So here’s a google docs link: https://drive.google.com/file/d/1W2MbZhrStsJYnpJ6D8gF8Ibxsq0LlVwn/view?usp=sharing)

1 Like

The feedback operators are exactly what your are looking for.

2 Likes

Oh, I’ve only used the TOP one for fun visual effects. How would I use it in this case?

I just placed it before the position output and it fixed everything!
Thanks!!