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
-1
votes
4 answers

How to get a sprite to follow a boat

I am fairly new to Scratch. I am trying to get my sprite (Zookeeper) to follow a boat when clicked, but the sprite stays about 4 inches away. I have looked online but I can't find a solution. The costume is from Google, could that affect it?
-1
votes
1 answer

Remote Sensors Protocol with C++

I am working on a project with the raspberry Pi and Scratch. I need to use the Remote Sensors Protocol with C++. I have tried porting the Python code across but i cannot get C++ to return the null values. The original Python code looks like…
-2
votes
0 answers

Blocks don't space between themselves

Code, along with test. The blocks are 32x32 I tried remaking Minecraft, but in my block placing mechanics, THERE IS NO SPACING, and I don't know how to implement it. This is just to bypass 220 char minThis is just to bypass 220 char minThis is just…
-2
votes
0 answers

I tried making a turbowarp extension, but i can not get it to work

I made a turbowarp extension which is supposed to find the average number out of a list of numbers, but it didn't work. Here is my code: class AverageExtension { getInfo() { return { id: 'average', name: 'Average…
-2
votes
1 answer

How to upload an .sb2 file to the Scratch website?

If I have a Scratch .sb2 file on my computer and also have an account on scratch.mit.edu how can I upload that project file to the website so it can be accessed there?
Mentalist
  • 1,530
  • 1
  • 18
  • 32
-2
votes
2 answers

How do i make a functional button in scratch?

I've been trying to make a button on scratch where if you press it once, it takes you to the help screen and if you press it again, it takes you back to the main menu. If anyone knows how to do this, please help! Thank you!
-2
votes
1 answer

Converting Scratch to Algorithm

First time I am learning algorithms and trying to figure out with stratch. I am following tutorials on Stratch wiki. How can I convert this to algorithm?( with flow chart or normal steps). Especially the loop.( I uploaded as picture) Please click…
-2
votes
1 answer

Replace letters in a word with a character

I need to replace certain letters in a word with a character. I'm stuck. How can I fix it?
Dude
  • 11
  • 1
-3
votes
4 answers

How do I make a Maze Generator on Scratch?

I am currently in High School, and I am in an APCSP (AP Computer Science Principles) class, which in my case is learning in Scratch programming. I am confused and have practically no idea what I'm doing. Scratch is very confusing and I feel like…
-3
votes
2 answers

How to check whether a number is prime or not (Algorithm using brute force)

I have designed an algorithm which takes an input and checks whether a number is prime or not. Is this correct? 1)Input num 2)counter= num-1 3)repeat 4)remainder = num%counter 5)if rem=0 then 6)broadcast not a prime.no and…
Hamza Azam
  • 17
  • 1
  • 3
  • 10
-4
votes
1 answer

What function could be workaround of this Scratch block in Python?

I want to know, what is a workaround/replacement for this Scratch block: In Python. I know that in JavaScript, the answer is: "..."[... - 1]
RixTheTyrunt
  • 185
  • 3
  • 11
-4
votes
1 answer

Python in Python

Scratch is made from flash. It isn't coding. But python is (or at least I think it is ). So I was wondering if it was possible to a) Make a coding language in python for the user to make b) Make the User's code executable. P.S. Is there a way for…
yolo
  • 127
  • 6
-9
votes
1 answer

How to make a button in a Scratch that takes you to some website?,

I know that this won't work in a normal Scratch. Maximum with Turbowarp, but there is one problem. Turbowarp makes JavaScript out of Scratch, and unfortunately I don't know this language. What should I do, or what command should I enter, so that the…
1 2 3
18
19