Return to Video

Play Lab Hour of Code - Repeat Forever block

  • 0:00 - 0:06
    Can you imagine if you had to repeat something
    forever and ever? Well hopefully you never
  • 0:06 - 0:12
    have to, because computers are really good
    at repeating things for you. This is the "repeat
  • 0:12 - 0:17
    forever" block. Anything inside this block
    will happen forever in the game. If we want
  • 0:17 - 0:22
    an actor to do something repeatedly, without
    the player having to do anything, we'll put
  • 0:22 - 0:27
    those blocks inside the "repeat forever" block.
    In this next puzzle, our goal is to help the
  • 0:27 - 0:33
    wizard patrol the boundaries of the kingdom,
    left and right continuously. Learning how
  • 0:33 - 0:37
    the repeat commands works, will save you a
    ton of time later when you build your own game.
Title:
Play Lab Hour of Code - Repeat Forever block
Video Language:
English
Team:
Code.org
Project:
Hour of Code
Duration:
0:39

English subtitles

Revisions