Scratch 2.0

<scratchblocks version=2.0>when green flag clicked
jump (1) pixels

define jump (height) pixels
repeat (5)
change y by ((height) / (5))
end
repeat (5)
change y by ((-1) \* ((height) / (5)))
end

</scratchblocks>

**Scratch 2.0**, also known as **Scratch 2**, was the second major version of Scratch, following Scratch 1.4. It featured a redesigned editor and website, and it was the first version that included an Online Editor on the Scratch Website as well as an Offline Editor. It went into public beta on January 28, 2013, and it was officially released on May 9, 2013. Its successor, Scratch 3.0, was released on January 2, 2019. The Scratch 2.0 online editor cannot be used anymore, as it requires the Flash Player, but the offline editor can still be downloaded.

## History

Main article: Development of Scratch 2.0
Scratch 2.0 was announced by andresmh on the Scratch Forums in January 2010. The first released experiment by the Scratch Team as part of 2.0's development was the Experimental Viewer, in August 2010. Later, in 2011, a beta Flash Player was released for projects, which logged-in users could choose to use. In 2012, this was replaced by a version of the alpha editor; this version was made the default for all users that October.

In May 2011, the first known version of the project editor, the prealpha, was released to a limited audience at Scratch Day @ MIT. A little while after this, the Scratch Team started posting updates, called Scratch 2.0 Progress Reports, to their blog. The new website and redesigned project editor, by then in the alpha stage (at alpha.scratch.mit.edu), were premiered for a few days to the public for Scratch Day 2012, a year later. Over the rest of 2012, people were brought in to test this version: community moderators and selected educators; Collab Counselors, former curators, Scratch Design Studio curators, TBG moderators, and a group of 500 volunteers. Some users were also able to infiltrate and use the program due to a glitch.

In December 2012, the public beta was announced to begin on January 28, 2013. It was available at beta.scratch.mit.edu from then on until its full release, upon which it replaced the previous website.

On May 13, 2014, the source code for Scratch 2.0 was released. It is available at LLK/scratch-flash on GitHub.

## Offline Editor

Main article: Offline Editor (2.0)
The Scratch 2.0 offline editor was released on August 26, 2013. It had few differences from the online editor, most notably, the lack of the Backpack and a different color used when text is selected. It can be downloaded here.

## Features

Scratch was completely rewritten in Adobe Flash for version 2.0 but could run projects from older versions of Scratch. It was still completely free and without ads. Due to the new features and different programming language, Scratch 2.0 projects were saved in the `.sb2` format instead of the previous `.sb` format. However, projects uploaded from Scratch 1.4 can still be downloaded from the project page in the `.sb` format. Scratch 2.0 features many new additions to both the program and website.

### New Features

Scratch 2.0 introduced several new features:

* Backdrop Name block
* Backpack for transporting sprites, costumes, and scripts project-to-project
* Cloning sprites (limit of 300 as of April 2021)
* Cloud Data (variables stored on the website)
* Custom Blocks
* Customizable User Pages
* Following System
* Project Notes and Credits are separate from Instructions
* Redesigned comment replies: @username shows who you're replying to
* Show or hide lists
* Sound Editor
* Studios which replace Galleries, but in My Stuff the url stays the same (it is still scratch.mit.edu/mystuff#galleries)
* Time blocks: Current () and Days Since 2000
* Use the at symbol (@username) in a comment to link to a user's profile page
* Username Block
* Vector Editor, as well as a Bitmap Editor for the Paint Editor
* Video Sensing
* When Backdrop Switches to () block
* Zooming in and out of the scripts area
* Record Project Video
* Student and Teacher Accounts

## Beta criticism

Early in 2013 during the beta, some people disliked Scratch 2.0. They complained of a bad paint editor and confusing project editor. After the final release, the criticism slowly ceased as users finally adapted to the new environment.[*citation needed*]

## Known bugs

One of the bugs in Scratch 2.0 was the ability for Scratchers to follow users who they could not normally follow, such as themselves or deleted users. To follow such users, the following JavaScript code was used:

```
$.ajax({type: "PUT",url: "https://scratch.mit.edu/site-api/users/followers/USER_TO_FOLLOW/add/",data: {usernames: Scratch.INIT_DATA.LOGGED_IN_USER.model.username}})
```

## Examples of New Blocks

Below is an example of some of the new blocks used in a script.
<scratchblocks version=2>
define increase by [increase] // custom block definition

```
   repeat (increase)
       play sound [pop v]
       change [☁ Cloud Var v] by (1) // cloud variables
   end

```

when gf clicked

```
   say (join[It's been ](join(days since 2000)(join[days since 2000, ](join(username)[!])))) // use of the "days since 2000" block and the "username" block
   increase by [10] // use of a custom block

```

</scratchblocks>

## Gallery

See also: Category:Scratch 2.0 Images
Scratch 2.0 ImagesThe Scratch user interface for Scratch 2.0The vector image editorThe Scratch 2.0 sound editorThe Front Page
## Trivia

* The Scratch 2.0 Overview video uses a cut version of "Scratch\_Redux" by Ant Neely.

## References

1. ↑ iTweak0r. (19/4/2015). “They renamed Scratch 2.0 to Scratch 2 a while ago.” post:954644
2. ↑ Lightnin. (13/12/2012). “Scratch 2.0 will be open for beta testing starting January 28th![title]” ar-topic:111325
3. ↑ Lightnin. (24/4/2013). “Scratch 2.0 will be released on May 9 [title]” post:23274
4. ↑ Wes64. (17/8/2013). “Yes, I did “infiltrate”, and in fact I was able to do so right up until I was actually given the beta password after my curatorship. I even made projects and saved them to my machine.” post:114120[*dead link*]
5. ↑ scimonster. (13/5/2014). “The ST has, at long last, open-sourced the Flash player!” topic:38755
6. ↑ Bernd Gärtner. (17/4/2012). “I'm really excited about custom blocks in Scratch 2.0!” http://scratched.media.mit.edu/discussions/scratch-20/custom-block-types
7. ↑ Rocker98585. (28/3/2013). “I hate the new Paint Editor. It disgusts me to the very top.” topic:3510
8. ↑ unicorn0125. (1/2/2013). “I can't draw correctly on 2.0!!! It is WAYYYY harder than 1.4.” post:9737
9. ↑ pinkkoala25. (3/2/2013). “The editor is so confusing!” topic:1819

de:Scratch 2.0
ru:Скретч 2.0
id:Scratch 2.0
ja:Scratch 2.0