Play Lab Hour of Code - Repeat Forever block
-
0:00 - 0:06Can you imagine if you had to repeat something
forever and ever? Well hopefully you never -
0:06 - 0:12have to, because computers are really good
at repeating things for you. This is the "repeat -
0:12 - 0:17forever" block. Anything inside this block
will happen forever in the game. If we want -
0:17 - 0:22an actor to do something repeatedly, without
the player having to do anything, we'll put -
0:22 - 0:27those blocks inside the "repeat forever" block.
In this next puzzle, our goal is to help the -
0:27 - 0:33wizard patrol the boundaries of the kingdom,
left and right continuously. Learning how -
0:33 - 0:37the 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
Amara Bot edited English subtitles for Play Lab Hour of Code - Repeat Forever block |