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

In Scratch how do you determine in the IDE if a variable is "For all sprites" or not AFTER the variable has already been created?

I know that when you are creating a variable in Scratch by pressing "Make a variable" button, you then get a dialogue box where you can select the scope of the variable with the radio buttons for either "For all sprites" or "For this sprite…
MattG
  • 5,589
  • 5
  • 36
  • 52
0
votes
1 answer

Variable increasing by 3 instead of 1

In Scratch I have a variable that is supposed to change by one every time a broadcast is recieved, however in testing it changes by three per broadcast and I can't find why. The button used to send the broadcast has 3 clones of it but each have a…
ChocolateChara
  • 187
  • 1
  • 16
0
votes
1 answer

How to change a variable when touching a pen drawing?

I'm making a game in Scratch where if they touch something their HP goes down. I'm planning on making multiple of the sprite appear without having to use clones or make several of the same sprite so I'm using the pen extension to draw it. I'm…
ChocolateChara
  • 187
  • 1
  • 16
0
votes
1 answer

How to optimize loading time on Scratch?

On Scratch I am trying to make a game that works similarly to a radio but only for a specific genre. I uploaded a bunch of .mp3 files and started coding away whenever it struck me that it would take forever to load due to the amount of songs Scratch…
ChocolateChara
  • 187
  • 1
  • 16
0
votes
2 answers

How do I Incorporate Lists into my Scratch Game?

I want to incorporate a list for my tycoon game, but I do not know how. I tried a lot of ways and failed each time. How can I incorporate a list into my scratch.mit.edu cash tycoon game? I am thinking of having an investment feature but I do not…
Janice En
  • 31
  • 4
0
votes
2 answers

How to create gravity in Scratch?

For people looking to advance their skills in Scratch and add gravity and jumping to your 2D game. Simple to use and easily optimizable. This can work for platformers or other fun-skilled games.
user18219651
0
votes
1 answer

Access JSON object from another file in Javascript

Perhaps a simple question but I am still new to JS / nodeJS. I have a script that is doing some basic string matching (dict.js), and I am trying to access a JSON formatted object from another file (words.json) to iterate through. The directory…
user16541120
0
votes
1 answer

mit-scratch : prevent sprite passing a certain boundary

I'm making a beat-em-up game. Noting the image that you see, I want to prevent my sprite character from passing the fence in the backdrop or where it divides the the floor from the net ball stand. What blocks would I require to create a sort of…
0
votes
2 answers

Where would I be able to locate the word bank or all the possible words inside of this code in Scratch for a remake of Wordle

Basically, I am trying to create my own game of wordle in scratch but I got stuck on where I need to make a list of possible words, so they cannot just type in all random letters, so all words they have to type in have to be real words. So, I pulled…
0
votes
1 answer

Why is my sprite's costume not changing in scratch when the statement of a function becomes true?

Why is my sprite's costume not changing in scratch when the statement of a function becomes true? I have the following code: For some reason it doesn't change the costume.
0
votes
1 answer

I don't know why but one out of 5 sprites I created in Scratch is not working as desired

I was trying to make a simple game using scratch but my lives counter is not working for one of the object. It is working for other 2 sprites. Everything is same. See if anyone can help.
0
votes
1 answer
0
votes
0 answers

How to make Sb3 to exe

How can I convert a sb3 file into an exe? I've made a game on scratch and I want to upload it as an exe. I tried searching tutorials on YouTube but most tutorials want me to download some software (Which I don't like using since it could contain…
0
votes
3 answers

I can't make my dinosaur jump in Scratch. How do I fix it?

I've recently made a game in Scratch named Dino T-rex. However, I can't make the dinosaur jump when an obstacle comes. It doesn't jump when the up arrow is clicked. Rather, it just goes front. How do I fix it?
0
votes
1 answer

Cannot save project in Scratch

My project no longer saves in Scratch 3.0. I tried refreshing and going to My Stuff but that did not help. The project does not contain any large files, but there are large blocks of code. To try to fix it, I moved the sprites into the backpack to…
Jim K
  • 12,824
  • 2
  • 22
  • 51