You can choose the default cat sprite or choose a different sprite by clicking the sprite icon in the stage area. The ”cat” icon represents sprites which is what characters are called in Scratch. The important step here is to have an idea of what you want to create. “Stage area” is where the actions of the sprites are displayed and “Code area” is where you have to drag and drop the code blocks from the”Block palette”. You’ll be taken to the coding area where you have put codes from the “Block palette” on the left side, as shown in the image below. Step 2- Create a New ProjectĪfter login in, click on “Create” on the upper left side. Step 1- Login into your Scratch Accountįirstly, you need to log in to your Scratch account and if you don’t have an account on Scratch then you need to create one. How to Run a Script in Scratch Programming?Įxecuting a command and running your project on Scratch is easy to understand, let us understand how to run a script in the Scratch program with an example. For example, if you want to turn your sprite 15 degrees, then first add the “when green flag clicked” from the “Events” category, and then the “turn 15 degrees” code block from the “Motion” category and click on the “green flag” button on top of the stage area and you will see the sprite turning 15 degrees every time you click on the “green flag” button. Drag and drop the “when green flag clicked” from the “Events” category in the Block palette.Īdd other code as per your objective.
To run the script by clicking on the “green flag ” button, you have to add the code block from the “Events” category. The “red button” is used to stop the script. The button is located just above the stage area, next to the “red button”. The “green flag” button is used to run a script in Scratch programming. Looking to learn Scratch coding? Explore Wiingy’s Online Scratch Coding Classes For Kids to learn from top Scratch coding experts. In this blog, we will discuss how to do that. The purpose of creating a project or script in Scratch is to execute or run it. A project in Scratch is usually referred to as referred to a Script. The collection of code blocks that interlock with each other to perform a certain action or story or game is called a Script. It is a visual programming language that enables children to make different types of fun and colorful projects, which include animations, games, stories, and much more! Run a Script in Scratch Programming: Scratch is built essentially for children who are interested in coding and game development.