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
0
votes
1 answer

How can I specify where to put values for a GET request in a HTML form?

Context I'm making a scratch project, with a sign in page on google sites. I'm using forkphorus so that I can manipulate the output of the username block. I have built a script in my scratch project that seperates out the username string (which is…
DM01131
  • 101
0
votes
2 answers

How to not go forward in scratch

So I made a project in scratch where people have to jump to get apples. The thing is, I made a block and I want the character to not go forward when it hits that block. You can see the top block where the apple is on. When this character touches…
UdayanS
  • 47
  • 1
  • 8
0
votes
2 answers

Add Random Number to List only if it's different than others

I'm designing a game in Scratch. The game is suppose to have a Spaceship travel through space, avoiding asteroids. These asteroids start at a fixed X position on the right side of the screen and go to the left, horizontally until they hit a fixed…
Josh
  • 13
  • 3
0
votes
2 answers

Clone lighting effects not working in scratch.mit.edu

I am working on making lighting effects in scratch. However, my code won't completely light the screen and will only light a small area of the stage. The rest of my systems seem to be working, however, including the shadows. Here's my code:
ARI FISHER
  • 343
  • 1
  • 13
0
votes
1 answer

How can the following errors be resolve in SCRATCH?

I created a bouncing ball game in scratch for CS50 PSET0. The game works well as I expected, except for the following bug/errors: The game can be paused by pressing the UP Arrow key on the keyboard, even BEFORE it is started or AFTER the game is…
0
votes
1 answer

MIT-Scratch assets (assets for it's interface)

I am looking for the assets for MIT-scratch. Icons inside its interface. I am creating a learn to code curriculum using scratch, and having the assets will be great for me to include into the worksheets. I have tried googling the assets and…
0
votes
2 answers

How to Simulate While Loops in Scratch?

In most programming languages, there is a "while" loop that runs code while a condition is true. However, in Scratch, there is only a "repeat until" loop that repeats until a condition is true. How do I simulate a "while" loop in Scratch?
4yl1n
  • 148
  • 1
  • 10
0
votes
1 answer

How to get the code from an Scratch workspace and display with Blockly?

I'm looking for a way to get the XML (or another way/structure) from a sequence of blocks used on my workspace inside Scratch-MIT 3.0 to display this code in the Blockly Google's library. Right now I have access to the Abstract Syntax Tree…
Jorge Nachtigall
  • 501
  • 4
  • 20
0
votes
1 answer

How do I find an array that follows certain rules relative to other arrays?

I'm doing a project for the purpose of learning more about abstraction in CS. I created a project in MIT-scratch in which four characters must have unique paths on a simple map, and not collide or pass through each other. I also want the paths to be…
0
votes
2 answers

how to change variable type to accept numbers more than 100 quintillion

I am a beginner in scratch and working on a simple program that speaks out numbers in multiples of 10 and the highest number it would speak using text-to-speech tool is 100 quintillion. After this it would start speaking in exponential format. How…
user979189
  • 1,230
  • 2
  • 15
  • 39
0
votes
6 answers

Get follower count on Scratch (API)

I am looking to find the follower count of a Scratch user using the Scratch API. I already know how to get their message count, with https://api.scratch.mit.edu/users/[USER]/messages/count/.
VFDan
  • 831
  • 10
  • 26
0
votes
2 answers

What should I do to move a sprite randomly between two specific placements?

What should I do to move a sprite randomly between two specific placements. For example, how can I implement this: If direction = 90 Then, got to x:10 y:20 or x:30 y:50 (I have just started using scratch and have no coding experience so I won't be…
Yash Kumar
  • 11
  • 4
0
votes
1 answer

PyAutoGui LocateOnScreen() returning "None"

I have been working on a Python script that clicks on boxes on the screen. The box clicking game is one that I have developed using https://scratch.mit.edu. Here is a link to the game: https://scratch.mit.edu/projects/295212078/fullscreen/. My code…
0
votes
3 answers

Set X() and Set Y() blocks not working in Scratch

I have a sprite that want to drag but when I'm done dragging it want it to place it again to its original position. I have the following blocks: The block is called without issue the first time (green flag). However, when I'm done dragging the…
0
votes
1 answer

I can't get Blockly working in Angular : How to make it work?

I would like import Blockly in Angular 7, I've import some Blockly files in my angular.json : "scripts": [ "node_modules/blockly/blockly_uncompressed.js", "node_modules/blockly/blocks_compressed.js", …