Home > Articles > Scratch resources > 10 block demos

10 block demos in Scratch

Sean McManus shares some 10 block demos that demonstrate popular techniques in Scratch

When I first started programming on the Amstrad CPC computer, magazines used to publish short listings. People could use them to learn how to program, and as building blocks for their own programs. One of the magazines had a feature called 10-liners, where programmers were invited to show what they could do in 10 lines of Basic.

I thought I'd see what I could do in up to 10 blocks of Scratch, and created a series of program cards. Click the cards below for more information and working demos, and feel free to share the cards on your social media channels or with the Scratch coders in your family, class or club.

How to add a countdown timer to your game

How broadcasts work

How broadcasts work: click for explanation

How to add a password to your Scratch game

How to add a password to your game: click for explanation

How to draw any regular shape in Scratch

How to draw any regular shape: click for explanation

How to draw a circle in Scratch

How to draw a circle: click for explanation

How to make a sprite explode in Scratch

How to make a sprite explode: click for explanation

How to use a webcam in Scratch

This Scratch example requires Scratch 2.0, not available on the Raspberry Pi

Ticklish dragon: Scratch webcam demo

How to greet the player by name

This Scratch example requires Scratch 2.0, not available on the Raspberry Pi

How to greet by username: click for explanation

Any requests?

Do you have an idea for a short program you'd like to see here? Email me, or message me on Twitter.

Find out more...

For more information on my Scratch books and more bonus content like this, visit the Scratch Programming in Easy Steps and Cool Scratch Projects in Easy Steps homepages. You can also learn how to use Scratch on the Raspberry Pi in Raspberry Pi For Dummies.

Credits

© Sean McManus. All rights reserved.

Visit www.sean.co.uk for free chapters from Sean's coding books (including Mission Python, Scratch Programming in Easy Steps and Coder Academy) and more!

Discover my latest books

Coding Compendium

Coding Compendium

A free 100-page ebook collecting my projects and tutorials for Raspberry Pi, micro:bit, Scratch and Python. Simply join my newsletter to download it.

Web Design in Easy Steps

Web Design IES

Web Design in Easy Steps, now in its 7th Edition, shows you how to make effective websites that work on any device.

100 Top Tips: Microsoft Excel

100 Top Tips: Microsoft Excel

Power up your Microsoft Excel skills with this powerful pocket-sized book of tips that will save you time and help you learn more from your spreadsheets.

Scratch Programming in Easy Steps

Scratch Programming IES

This book, now fully updated for Scratch 3, will take you from the basics of the Scratch language into the depths of its more advanced features. A great way to start programming.

Mission Python book

Mission Python

Code a space adventure game in this Python programming book published by No Starch Press.

Cool Scratch Projects in Easy Steps book

Cool Scratch Projects in Easy Steps

Discover how to make 3D games, create mazes, build a drum machine, make a game with cartoon animals and more!

Walking astronaut from Mission Python book Top | Search | Help | Privacy | Access Keys | Contact me
Home | Newsletter | Blog | Copywriting Services | Books | Free book chapters | Articles | Music | Photos | Games | Shop | About