The second program uses a forever block in conjunction with an embedded if block and a counter variable to create a counter loop. That program was used as the jumping-off point for a discussion of thesimilarities and differences between a forever/if block combination and a repeat block.
The third program uses a repeat until block to cause a sprite to run in a small circle until the user pressesthe space bar. I pointed out that unlike the forever block, it is possible to connect another block to the bottom of a repeat until block. Therefore, it is not necessary for a repeat until block to be the last block in a script.
Finally, I provided the specifications for a student-programming project for you to demonstrate your understanding of what you learned from the threeprograms listed above and from earlier modules.
What's next?
One of the new features of Scratch v2.0 is the ability for you to create your own blocks. The next module will discuss that feature.
Resources
General resources
- Scratch home
- Scratch tutorials
- Scratch explanatory video
- Scratch tutorials from MIT
- Scratch tutorial - Digital Art for All
- Scratch for Budding Computer Scientists
- Learn Scratch at learnscratch.org
- Scratch Tutorial - Space Shuttle Mission STS-2020
- SCRATCH TUTORIALS ICT In Primary Education 2012-2013
- Scratch Wiki
- Scratch WikiTable of ContentsWebsite - Scratch Wiki
- Scratch WikiTable of ContentsTutorials - Scratch Wiki
- Scratch WikiTable of ContentsProgram - Scratch Wiki
- Tutorial about Variables - Scratch Wiki
- Scratch support MIT web site
- Scratch resources at Scratch.ie
- ScratchEd Resources
- Scratch project Day Dream
- Scratch project Son of String Art
- Scratch Project Scratch Tutorial
- DeMorgan's theorem
Programs used in this series
- Variable01 - Online version of program
- Variable02 - Online version of student-programming project
- Variable03 - Online version of student-programming project
- IfSimple01 - Online version of program
- IfWithVar01 - Online version of student-programming project
- Arithmetic01 - Online version of program
- Arithmetic02 - Online version of student-programming project
- Relational01 - Online version of program
- Relational02 - Online version of student-programming project
- Logical01 - Online version of program
- Logical02 - Online version of student-programming project
- Logical03 - Online version of student-programming project
- ForLoop01 - Online version of program
- ForLoop02 - Online version of program
- ForLoop03 - Online version of student-programming project
- ForeverLoop01 - Online version of program
- ForeverLoop02 - Online version of program
- RepeatUntil01 - Online version of program
- ForeverLoop03 - Online version of student-programming project
Miscellaneous
This section contains a variety of miscellaneous information.
- Module name: Scr0380: The forever and repeat until loops in Scratch 2.0
- File: Scr0380.htm
- Published: 05/19/13
Financial : Although the Connexions site makes it possible for you to download a PDF file for thismodule at no charge, and also makes it possible for you to purchase a pre-printed version of the PDF file, you should beaware that some of the HTML elements in this module may not translate well into PDF.
I also want you to know that, I receive no financial compensation from the Connexions website even if you purchase the PDF version of the module.
In the past, unknown individuals have copied my modules from cnx.org, converted them to Kindle books, and placed them for sale on Amazon.com showing me as the author. Ineither receive compensation for those sales nor do I know who does receive compensation. If you purchase such a book, please beaware that it is a copy of a module that is freely available on cnx.org and that it was made and published withoutmy prior knowledge.
Affiliation : I am a professor of Computer Information Technology at Austin Community College in Austin, TX.
-end-