Blockly Movie Task
Example 2 - Using just an if clause
In this example, there is no else part in the if block so a red circle moves across the screen until time is 50. The program continues to evaluate below the if clause for every frame so a green circle is present in the centre of the screen for the whole animation.
Run the program below to see how this works.
Try this out in a new window ...
Movie Tutorial Start
Example 1 - Using an if else clause
Example 2 - Using just an if clause
Example 3 - Why you should avoid loops in this module
Did you know the UK Bebras Challenge is run by the Raspberry Pi Foundation? Discover free teaching resources, tools, and expert support for computing education at raspberrypi.org.