I was asked by a few parent friends how I put my kid in [Scratch](https://scratch.mit.edu), so here’s my guide to how to put (and animate!) your kid in scratch ala:

![](/images/scratch-kid/aim.jpg)

[I’ve published 38 videos for new developers, designers, UX, UI, product owners and anyone who needs to conquer the command line today.](https://training.leftlogic.com/buy/terminal/cli2?coupon=BLOG\&utm_source=blog\&utm_medium=banner\&utm_campaign=remysharp-discount)

1. Photos[](#1-photos)

I used my phones camera to capture these pictures. He changed his pose as I took each picture. You should try to find a relatively visually quite surrounding for the picture. Here’s the original photos I used:

![](/images/scratch-kid/photos.jpg)

It also helped that there was contrast between his clothes and the background around him.

Then transfer these pictures to a computer so you can upload them to a site to remove the background.

2. Removing the background of the photo[](#2-removing-the-background-of-the-photo)

Visit [www.remove.bg](https://www.remove.bg) in your browser, then one at a time, click "select a photo" and upload the photos you took, then download the newly generated photo.

The site will also handle correctly rotating the image for you:

![](/images/scratch-kid/removebg.jpg)

How does it work? Machine Learning commonly known as AI. Using a metric tonne of images that have already been categorised to identify what’s the subject and what’s the background, this data is then used on new images to distinguish background from foreground.

Note that your photos are not stored on the site’s servers and not used for the AI training. [More under "Do you use my data to train your AI"](https://www.remove.bg/about).

Process each photo then head over to [scratch](https://scratch.mit.edu) for the last part.

3. Adding to scratch[](#3-adding-to-scratch)

You’re going to create a sprite that has multiple costumes using the images you’ve created.

3.1. Create a new sprite[](#31-create-a-new-sprite)

From the bottom right, you need to hover over the sprite icon and select "Upload sprite"

![](/images/scratch-kid/add-sprite.png)

Now select one of the processed photos.

Don’t resize the image or reposition it at this point - you’re going create the sprite and all it’s different "costumes" (the positions your kid is posing) and then you’ll be able to re-position and resize the sprite later.

Select the sprite and select the "Costumes" tab (towards the top left of the screen). You should see this:

![](/images/scratch-kid/added-sprite.jpg)

3.2 Adding kid positions[](#32-adding-kid-positions)

For more poses, you need to create more costumes for the sprite. Hover over the icon in the bottom left and select "Upload Costume" from the menu (second from the top).

Keep uploading each processed photo you took, until you have something like this:

![](/images/scratch-kid/costume.jpg)

It’s also worth giving the costumes a name that’s memorable, for instance "kick" or "pre-kick" etc.

3.3 Making the sprite move[](#33-making-the-sprite-move)

Switch over to the "Code" panel, and with your kid’s sprite selected, you’re going to make the sprite cycle through some costumes when a key is pressed.

![](/images/scratch-kid/final.jpg)

These blocks tell the sprite: when the space key is pressed, immediately change to the "pre-kick" costume, then wait 0.1 seconds, then change to "kick" then wait 0.2 seconds, then return to the "ready" costume. The effect is he completes a kick.

  • "when \[space] is pressed" is found in the Events blocks

  • "switch costume to \[ … ]" is in the Looks blocks

  • "wait \[x] seconds" is in the Control blocks

You can also add your own background or other sprites and add more key presses for different events to occur, like jump, or run left or run right, etc.

This final stage is where you can make adjustments to the size and position of the sprite (rather than in the costumes panel). In this case, my kid has been made to be 120% large and rotated slightly.

Have fun!

Published 15-Apr 2019 under #code. [Edit this post](https://github.com/remy/remysharp.com/blob/main/public/blog/scratch-kid.md)

👍 25 likes

[![José Pedro Dias](https://webmention.io/avatar/pbs.twimg.com/ebbd0ca7cc30ee7a1815380ff3809b9016b53b173f904376f1e835f3104dc327.jpg "José Pedro Dias")](![Yacine Benzmane 🔥(https://webmention.io/avatar/pbs.twimg.com/79ba69b23190de4dc84d7605c3cf48a4405ef13e53bc5dbe5227b60e90336912.jpg "Yacine Benzmane 🔥")](![Brian Cantoni(/images/no-user.svg "Brian Cantoni")](![Yucca(https://webmention.io/avatar/pbs.twimg.com/b26223e479adbd61848e5e7c6491dff3c5daaca9c2920fc6f776899f0775f7c0.jpg "Yucca")](![@thomas@social.tzi.fr(https://webmention.io/avatar/pbs.twimg.com/771c10bdccf2f1097190137165e552207370fc500b4e8edf30f141ef858cede1.jpg "@thomas@social.tzi.fr")](![Ania(https://webmention.io/avatar/pbs.twimg.com/aaf534c25732dcda47ab01100668cf184b5b91b907a52c1306298e39a829301e.jpg "Ania")](![Brede(https://webmention.io/avatar/pbs.twimg.com/0fd33ddceea9b158a6cb044a30939a760c933b0a6faabb76134fffc506f2fab4.jpg "Brede")](![Gregoire Sage(https://webmention.io/avatar/pbs.twimg.com/fbf69de85d28ca97a4219ba76bdd0ba012d9e95a98bd86829a907b6410965cce.jpg "Gregoire Sage")](![Lupo Montero(https://webmention.io/avatar/pbs.twimg.com/dd972a042dae8bd24ccb5faf5f992e05176243da4b8d05bcecb6603afc4b6e5a.jpg "Lupo Montero")](![Chris Dobson(https://webmention.io/avatar/pbs.twimg.com/e78b2719652a1b37a6d7db68b241e17e6a6ec84903cc8e68fc4eb2bbc152ddf9.jpg "Chris Dobson")](![Paul Howie(https://webmention.io/avatar/pbs.twimg.com/77b2c139d340ef738cc1eb34672a11c817dec6310b9f167639bec0fe4c059aa0.jpg "Paul Howie")](![Ben Goode(https://webmention.io/avatar/pbs.twimg.com/5d446e56057a3891cea57e3d60f030424b2c5d60016589cda3959dcf3137fe87.jpg "Ben Goode")](![Darren Townsend(https://webmention.io/avatar/pbs.twimg.com/8c90e73be304c0fd5a646719173601b810f61a52a4d416e2c6ef6b380f8827af.jpg "Darren Townsend")](![Jabran Rafique ⚡️(https://webmention.io/avatar/pbs.twimg.com/d56b805f5f2855c67fb83ecb1d249ed4e9ddfc24e07a363f082774bc6b61e513.jpg "Jabran Rafique ⚡️")](![Margeaux 🏳️‍🌈 💻 📱(/images/no-user.svg "Margeaux 🏳️‍🌈 💻 📱")](![Julian(https://webmention.io/avatar/pbs.twimg.com/f7674ebc490bb754fea04c0bd622479dfd89770362886c447a5a35076739797a.jpg "Julian")](![Fabio Franchino(https://webmention.io/avatar/pbs.twimg.com/e9bb10d62b568ec93c59e4dd5c3acf7c6fdb53d0b8a32f51721dab4e5b77117d.jpg "Fabio Franchino")](![Harmen Janssen(https://webmention.io/avatar/pbs.twimg.com/6aac1ea6a98cf9597a3d2a5ad07c4756d15073e21dcd2e274a320ddacafca64b.jpg "Harmen Janssen")](![Paul Niven(/images/no-user.svg "Paul Niven")](![ZXer|TI-99er|Scratcher|Code Club volunteer(https://webmention.io/avatar/pbs.twimg.com/dfc334442b22ba5fc0471d25c257ebf8d1bb45580eb42c2ed0b6beebeaac835b.jpg "ZXer|TI-99er|Scratcher|Code Club volunteer")](![Victor Gallet(https://webmention.io/avatar/pbs.twimg.com/797524926769eddfcfd225d02635c7e40cdcecb7d4b799ec3d5871ae5d46aa21.jpg "Victor Gallet")](![TJ(/images/no-user.svg "TJ")](![litenjacob(https://webmention.io/avatar/pbs.twimg.com/757964d6e2df9827c8caf61ef495fc59999011c243ac44fb07921653ac87c840.jpg "litenjacob")](![🚀 ndy(https://webmention.io/avatar/pbs.twimg.com/ceb029d1bfec3f29eebcfee7150e779b175929a4ffcb702018832fab6340a85a.jpg "🚀 ndy")](![Fabien Wernli(https://webmention.io/avatar/pbs.twimg.com/f5f7d2b33f52fe8fe7a16ca1b64c8a264f9db6737c84dd4459ba6ed26df5060f.jpg "Fabien Wernli")](https://twitter.com/faxm0dem)

Comments

Lock Thread

Login

Add Comment[M ↓   Markdown]()

[Upvotes]()[Newest]()[Oldest]()

Mohamed Yahia

0 points

12 months ago

That’s sick

Solly

0 points

4 years ago

[Snap](https://snap.berkeley.edu) is pretty much a superset of Scratch that adds tons of awesome features, and if a block of any kind is missing, you can implement it in Snap or JavaScript. According to its home page, it is basically a cross between Scratch and Scheme. It is still block based (kinda the whole point), but the UI isn’t as colorful and stuff. Also, its image editor is minimal and has very little vector support, and it has no sound editor. However, these can be replaced with other online (or offline) services, such as [Pixlr](https://pixlr.com/editor/). It also has a much smaller community. However, IMO, the added features make it much better than Scratch, especially for older kids.

[Commento](https://commento.io)