- Help students understand why they might need to continuously check a condition in a game, and how to do it.
- If a student wants code to execute as soon as an if statement is satisfied, their code must continuously be checking the if statement's condition, rather than only checking once when first executed.
- When students report that their code isn't working, check that they have FOREVER blocks around any IF block.
- For example, the first script below will only check if the sprite is touching the color blue once. However, the second script continues checking if the sprite touched the color blue for the duration of the program, and plays the note when it happens.
- Check out Colleen’s YouTube video Forever-IF vs. IF-Forever for an explanation of how IF and FOREVER blocks interact.