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
vote
2 answers

My text box engine won't delete the text after progressing to the next text, or it won't keep the clone if it manages to delete the previous text

For the first one, I use broadcast (skip) and wait block under the hide and my whole text box engine. For the second one, I use broadcast (skip) under the hide and my whole text box engine. So basically, the broadcast skip is to set the counter to…
1
vote
2 answers

Sound interaction between two sprites in MIT Scratch

I am trying to create a DJing program in which one song starts when a sprite is clicked and another song starts (and the first one stops) when a second sprite is clicked. My solution has been to create a variable and use it as an on/off boolean,…
2OL1
  • 87
  • 7
1
vote
3 answers

Transform text to uppercase in Scratch

My niece is trying to do a school assignment with scratch and asked for some help. Her assignment is to create a script that takes in a password mixed with numbers and lowercase letters and she has to change the letters from lowercase to uppercase.…
1
vote
4 answers

Scratch cloud variables

I am using cloud variables in a scratch project. I haven't used the concept of encrypting and decrypting for cloud variables, simply checked if score is greater then high score then set score to highscore. But in the cloud data history, it is only…
1
vote
1 answer

How can I solve scratch2 textbox problem for rtl languages like farsi?

I'm using scratch 2.0 and for RTL languages such as farsi and arabic , I've got a problem with Textboxes . You can see the problem I face in picture below, starting the sentence from left to right. It'd be helpful if you guys can help me out. Is it…
1
vote
1 answer

Cyclomatic complexity of Scratch programs

I'm writing a paper on introductory programming for young learners. To determine the difficulty level of a program, I'd like to draw on the concept of cyclomatic complexity, which I've come across during my research. I'd really appreciate if you…
pretzel
  • 31
  • 1
1
vote
1 answer

How to export Scratch project to Unreal Engine 4

I'm a Scratch Developer and I want to start creating games in UE4. Since most of the functionalities in Unreal are created on blueprints I'm wondering, is there a way to export my existing Scratch game to an Unreal project?
1
vote
2 answers

Setting breakpoints in Scratch 3 source code

I previously worked with the Scratch 2.0 source code which was largely action script based. I now want to dig into the 3.0 code which has moved across to JavaScript but have little experience in that area. I'm working in Windows 10. These are the…
Rok
  • 2,568
  • 4
  • 26
  • 28
1
vote
0 answers

Raycaster in scratch.mit.edu isn't working

I need help with a raycasting script I'm working on. For some reason, instead of drawing the map, it just draws a solid line on one side. I am following the Scratch Wiki's tutorials as well as using a working version. Here's my code.…
ARI FISHER
  • 343
  • 1
  • 13
1
vote
4 answers

how to change clone position in the screen at specific x and y positions?

I am a beginner in scratch and I am creating a simple project in which there is a sprite and I create clones of that sprite and place them in a pyramid format. My question - Once I create a clone, how can I move that clone to specific x and y…
user979189
  • 1,230
  • 2
  • 15
  • 39
1
vote
3 answers

How to detect exact location of mouse click on sprite in scratch

I would like to detect the exact location of the mouse click within the 3x3 grid displayed on the screen. How can this be done in MIT scratch? Any suggestions?
user11740974
1
vote
3 answers

Turn (15) degrees scratch block doesn't work

When ran, the the turn (15) degrees block doesn't work- for example: When gf clicked say [Waaah!] turn (15) degrees When gf clicked say [Waaah!] turn (15) degrees The sprite would say Waaah!, but wouldn't turn.
SRPFC
  • 13
  • 4
1
vote
2 answers

How to boost MIT Scratch 3 performance in "full screen" mode?

I am using the version 3 of MIT-Scratch to create a simple game. It's running smooth in the (smaller) editor view, but it hast quite significant lag (only a few fps) in the full screen mode, on the same machine. It's an older DELL machine. Why is…
Marcel
  • 15,039
  • 20
  • 92
  • 150
1
vote
1 answer

Using two motors in Scratch 3 with Lego EV3

Scratch 3 seems to only have commands to start one motor at a time for X seconds. With two motors, one at each wheel, how do I tell both motors to go for a while so the robot moves forward?
KingOfCoders
  • 2,253
  • 2
  • 23
  • 34
1
vote
1 answer

Generating the same password for any given string?

Good morning/afternoon/evening guys! So I've been assigned for a class the following task: make a Scratch (:/ not the funnest language lol) program that takes an input string, and outputs a password. However, the password should be reproduceable…
Pat
  • 78
  • 2
  • 14