• Very Useful Monster Workshop
  • Resources
  • Why micro:bit?
Imagination Coding Academy
  • Very Useful Monster Workshop
  • Resources
  • Why micro:bit?

2.2 - Improve how your monster reacts to the world using logic and loops.

When we first explored inputs and outputs, we used a very simple logic: if the input occurred, then we would trigger an output. Sometimes we want to have more control over the logic

Simple Logic

Let’s start with simple logic.

Loops

Now we can add a loop and understand the difference between a loop and a “forever” block.

Loops are used for repeating a command and can be very helpful when creating motion.egestas.