Questions tagged [mit-scratch]

Scratch is a graphical drag-and-drop language developed by MIT.

Scratch is a graphical drag-and-drop language developed by the Lifelong Kindergarten Group at the MIT Media Lab. It is used in a number of grade schools and other educational institutions to teach principles of programming.

It primarily focuses on developing games or other graphics-intensive applications, but it can be used for other tasks as well.

The code interface consists of 'blocks' that are dropped into the editor window and then hooked together to perform tasks. Manipulation of 'sprite' objects is the main focus of the language.

Scratch has inspired several similar programming interfaces, which use its block-manipulation approach to programming.

Other block-programming tools include Snap (also known as Build Your Own Blocks), which extends Scratch with first-class data and better routine-creation tools, Enchanting, which allows programming the Lego NXT controller, and Google's Blockly, which provides generic tools to allow any programming language to be programmed with a block interface. Also Scratch Jr, which focuses on coding for young children (aged 5-7 years), the blocks are placed horizontally instead of vertically like Scratch, as younger children found this easier to understand.

Scratch's official wiki contains documentation and tutorials about all features of Scratch.

Scratch's official discussion forums also contains information concerning Scratch.

Books:

284 questions
2
votes
4 answers

I have 4 identical sprites that don't do the same thing, Why?

I have four identical scratch sprites, but only one of them do what I expect and I need to know why so I can continue with my project I have tried reloading the page multiple times but it still won't work When (Green Flag) clicked forever: …
Lordimass
  • 97
  • 2
  • 6
2
votes
6 answers

how can I position costumes to the center in Scratch 3.0?

The new version of Scratch was launched at the beginning of 2019. Unfortunately I could not find the button which was (in previous versions of Scratch) responsible for positioning things to the center . Of course you can do manually the positioning…
2
votes
2 answers

How to hide a particular sprite in mit-scratch?

I am trying to write a scratch code in which on a button press a particular sprite will be displayed and on another button press another sprite will be displayed, the first one should disappears. I want to know the basic feature of the scratch that…
gpuguy
  • 4,607
  • 17
  • 67
  • 125
2
votes
1 answer

Where can you see the console.log() output of a scratch2.0 extension?

I am busy creating an extension for scratch2 on my raspberry pi (version scratch-flash = ba2f624-dirty). I am loading this extension using the "Import experimental extension" menu. In my extension javascript file I am using the console.log()…
JanVdA
  • 338
  • 3
  • 15
2
votes
1 answer

MIT-Scratch : Sequential cloning without delay

I am just starting to play with this as an educational tool for a youngster and encounter strange behavior whilst attempting to clone sprites. I setup a global variable for position x,y in sprite_1 and clone a sprite_2 object. This object…
Chris
  • 2,655
  • 2
  • 18
  • 22
2
votes
1 answer

javascript scratchblocks squarespace

I would like to use Scratchblocks (a tool for rendering visual Scratch code blocks from a text listing, on GitHub) on my Squarespace website. The problem I am getting is that the scratchblocks are never rendered on the first load - but only after a…
2
votes
0 answers

Scratch + GPIO + Adafruit MotorHAT

I have a Raspberry PI2 with Adafruit MotorHAT, and two stepper motors attached to the hat. I have installed the Cymplecy GPIO7 on my Raspberry Pi 2, and I tried to control the stepper motors with it, but I cannot. I set the AddOn variable to…
Zoltan Hernyak
  • 989
  • 1
  • 14
  • 35
2
votes
2 answers

In Scratch, how do you copy a PART of a costume so that you can paste that object onto another costume?

Lets say I have two backdrops. One is a forest with a panda in it. Another is a zoo cage. I want to copy the panda in the forest costume and paste it into the zoo one. I would prefer not to redraw the panda because I want the panda to look EXACTLY…
2
votes
2 answers

Subversion control in scratch

Is it possible for two persons to develop project in parallel in Scratch programming language? Is there anything like subversion control or code merging in Scratch?
Rudziankoŭ
  • 10,681
  • 20
  • 92
  • 192
2
votes
2 answers

Scratch Cloning duplications

I am using scratch. I am cloning sprites and I am making a minecraft type game where I use many clones of one block to make the workload easier. I keep the original sprite hidden, and hide clones when I want to destroy them. I am trying to create…
dralston
  • 21
  • 2
2
votes
1 answer

Which RNG is used in Scratch?

Which random number generator is used in Scratch 1.4 and where can I find its implementaion in the source code? If it is just libc's random(), please point me to the spot where it's called.
d33tah
  • 10,999
  • 13
  • 68
  • 158
2
votes
2 answers

Installing custom fonts on Scratch

I for my project require to install a custom font for my program but cannot find the directory to install a new font. Where would I find it? I have looked everywhere including the recycle bin
2
votes
2 answers

Trouble using microphone in Scratch

When I try to record a sound for my sprite in Scratch, nothing happens. I click on the microphone to record a new sound, then click on the circle to start recording, click on "allow" when that warning pops up, but then, nothing happens. My…
shirewoman2
  • 1,842
  • 4
  • 19
  • 31
2
votes
1 answer

Communication Java-Javascript with http requests

Lately i have been trying to make communication between minecraft server (running with Java) and scratch (running with JavaScript). I have written the code in java already: package me.yotam180; import java.io.IOException; import…
Yotam Salmon
  • 2,400
  • 22
  • 36
2
votes
1 answer

Add Blocks - Scratch

I have a C++ Library With Functions that I would like to integrate with Scratch. I need to be able to make the blocks have certain code and then export the code as a .cpp file. I am able to edit the source if I need to. I have searched but I have…
John
  • 2,015
  • 5
  • 23
  • 37