4.2.6 Forever loop

View

The   block or the “forever” block is a block with an infinite loop that repeats itself forever. Blocks held inside this block instruct the sprite to perform a specified action and will not stop unless it is instructed to stop using the “Stop all” block.

 

Example

The example below instructs the sprite to move forever until it moves beyond the edge of the stage.

Figure 117: Forever Loop

Due to this infinite loop, the block has no bump. This means it cannot be connected to another block at the bottom. Having a bump would be pointless, as the blocks below would never be activated.

Last modified: Wednesday, 29 September 2021, 4:58 PM