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

Curved line between two points

I am using scratch and am trying to find the shortest distance between two points and then draw a line between them. Basically the program allows the user to click on two points on a map and then calculates the longitude and latitude for both…
Charlie
  • 21
  • 3
2
votes
4 answers

Can an NXT brick really be programmed with Enchanting and adaption of Scratch?

I want my students to use Enchanting a derivative of Scratch to program Mindstorm NXT robots to drive a pre-programmed course, follow a line and avoid obstacles. (Two state, five state and proportional line following.) Is Enchanting developed…
1
vote
3 answers

How do I select an item from a list created in Scratch?

My son and I are learning how to program in Scratch from MIT. I have learned using the variables tools how to create a list but I cannot work out how to select an item from the list I created and to use that selection for the next command. How do I…
Farrel
  • 10,244
  • 19
  • 61
  • 99
1
vote
1 answer

how to make an enemy independently moved by an inverted screen movement made by the player

What I'm trying to make In mit-scratch I'm making an Isometric game with an arena as the main part of the game idea, the player would be going around killing enemies while being unable to pass through objects. the enemies should be slower than the…
1
vote
2 answers

How to make the variable chnage?

Please help me with this my variable (Score) is not changing when i hit the enemy. Programming: Scatch MIT link for file https://scratch.mit.edu/projects/840044224 I expect it to change when i hit the enemy with bulet
1
vote
0 answers

How can I replicate Scratch's "item X in list" function in Python?

I'm relatively inexperienced with Python, and I'm attempting to convert an old prime number sieve script I made on Scratch to the Python language. The original Scratch script has a portion that goes like this: repeat until item Divisor of PrimeList…
1
vote
2 answers

Wordle program prints wrong letters, I need help debugging the issue

https://scratch.mit.edu/projects/798882651 Wordle scratch code has a bug, whenever an input is given by the user the program prints 5 of the same sprite with the same costume regardless of input. The program should print all letters in user input as…
1
vote
2 answers

2 questions from an algorithm in Scratch programming

The algorithm is as follows: Input m if m < 0 then {m = - m} repeat_until { (m <= 5) } { m = m-1 } Now, here is what I would like to know: What is the value of (m) to skip the loop? What is the value of (m) to enter the loop once? I've tried…
1
vote
1 answer

How to create a random action on Scratch

I want to build a game with these actions: 1- Random jams are being shot at the wizard. 2- The player should hit the jam with his wand to break them before they touch the wizard. 3- If any jam touches the wizard, the game is over and it a big text…
Alisanta
  • 11
  • 2
1
vote
1 answer

How to find the amount of people are following one specific user on Scratch, and how do I add it to my project?

So, I am working on a project that includes having a live follow count on it, so how do I add it? I also do not know how I can acsess the api base from inside the project. I have wondered and I have not came up with a viable solution.
1
vote
2 answers

How to make a Password Validator in Scratch

So I am trying to make a password validator in Scratch where it asks the user to input an answer and then it puts the answer through some criterias and then outputs if it is a valid password or not. The criterias are: Has at least 8 characters, Has…
1
vote
0 answers

How do I set up a cloud variable server?

I'm forking a code editor that uses block. It is called TurboWarp, it is based on Scratch. When i package a project to make it an exe, I have the option for my own cloud variable server. How do I set this up on my website? I'm using…
Best Codes
  • 11
  • 3
1
vote
1 answer

How to tween/Lerp between two numbers

I want to be able to lerp between two numbers (Actually RGB). Sort of like a slider. Where 0 = (255,0,0), and 1 = (0,255,0). Is there any way to code with without an external library or function? Thanks.
1
vote
1 answer

Can you use v2 features of the micro:bit when in Scratch Link mode, to create a 'game controller'?

My daughter is excited about owning the v2 micro:bit as it has better features than the v1, but we cannot find a way to use these features when directly connected to Scratch. The situation I am referring to is when connected by USB to her laptop,…
Magnus Smith
  • 5,895
  • 7
  • 43
  • 64
1
vote
2 answers

How to make a sprite display a variable

I am making a Undertale-Based game on Scratch, and I am trying to make a health counter that shows how much health you have. I could always make the variable viewable but I want it to fit in with the game and not stick out like a sore thumb. I've…
ChocolateChara
  • 187
  • 1
  • 16