UK Bebras

 
 

OUCC Tutorials: blockly movie [3 of 4]

Tutorials index

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.

<< Back | Next >>

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

Tutorials index