✅ Add delays to loop for a more pleasant animation?

Since repeat loops working fast I find it very unsatisfying seing that 5 bricks were laid almost instantly in Finish the Wall (applies to other similar exercises).

It feel like for learners it would be beneficial to see how objects are popping one by one with each loop pass. Maybe worth adding Run Slowly optional mode for the Run Code button?

Note, you can use the “scrubber” bar at the bottom to walk through the code one line at a time!

1 Like

Right, though it’s a different as doesnt give this animated feeling when something is working magically on its own (based on the code).

See the Golf repeat loop of repeat(60) looks nicely animated, because it makes 60 iterations changing position by 1 pixel and this takes some time.

Bricklaying repeat(5) loop only inserts 5 bricks and it happens instantly.

3 Likes

Great point. I’ve slowed down the brick building in all three brick exercises :slight_smile: Will be deploying shortly.

I have to do/set this differently on each exercise as each one is a stand-alone program. I’m sure I’ve missed others too, so please open new issues for those as you find them. I’ll mark this as done now!