Bubbles emerging and moving around randomly until a certain point

Hi there, I’m super stuck on this animation and could use any suggestions.

The speech bubbles emerge and then randomly move upwards until the y-position reaches 100. It downwards until y-position reaches 800.

What am I doing wrong? I’ve been able to make the speech bubble move upwards infinitely by setting “repeat infinite” on a move command, but that setting doesn’t toggle on/off when the y-position reaches one of the two thresholds.

CleanShot 2024-12-17 at 08.52.36.mp4