For loop, delay problem

As far as I know loops have to finish before the next frame. For “slow loops” like this I normally use a timer that disables itself when it reaches the end of the loop.