Arduinocoms icon Arduinocoms EZB v4-Arduino I2C bridge for ARC: supports custom C# code and reads gamepad or Wii controller inputs for robot control Try it →
Asked

Blockly Loop Execution Issue

Hello! I'm trying to create a loop in the Blockly programming environment, but it only executes the first statement and doesn't continue with the rest.

User-inserted image

Could someone please help me figure out why the loop is not working as expected? Thank you!


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

#1   — Edited

Look in the debug window, and you will find messages. If there is an error, it will be displayed there.

Also, don't forget that you are using the WAIT commands, which means they must complete before moving to the next command. The word WAIT means wait for something to complete until instructed to continue. So in your code, you audio soundboard would WAIT until it has completely finished before moving to the next command.

If you do not want that, do not use the WAIT commands.

User-inserted image