Computer Science, asked by jiyaulhaque573, 7 months ago

which option allows you to start a scratch script​

Answers

Answered by sunil2013sonkar
5

Explanation:

Scripts are easy to work with. Some "rules" are as follows:

To create a script, one simply has to drag blocks out of the Block Palette and assemble them.

To assemble blocks, they must be dragged on, below, or in another block. (Except for Hat Blocks.)

To disassemble blocks, they must be dragged apart.

To remove a script, drag it into any of the block palettes, or right-click the hat block and press delete.

To start a single script just click on it.

Scripts can be edited in the scripts tab of every sprite and the Stage.

Structure

Every block shape is designed so that it can do one or more of the following:

Start a script

Add to the end of a script

End a script

Fit inside other blocks.

Contain other blocks.

Because of that, blocks can be assembled to create a script like a jigsaw puzzle. This prevents syntax errors.

Definition

A script is defined within the Scratch program as one or a set of blocks that begins with a Hat Block. Even a single block can qualify. However, scripts are usually referred to as sets of blocks that consist of at least two blocks.

Script Errors

Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.

On error, the script turns red.

When using previous versions, when putting certain blocks together, it is sometimes possible to make an impossible script, meaning that it cannot function. When impossible scripts are run, in development mode, the script is outlined in red, the trouble-causing block colored red, and the whole script is paused. Online, the player simply ignores it and moves on if possible. In the Scratch 3.0, if you have an error like the one shown, the script will just stop.

Errors are usually caused mathematically, such as when a script tries to divide by zero or find the square root of negative one. Trigonometric errors are also common. Other common errors are caused by using a block only available in sprites in the stage, or when an nonexistent item of a list is being accessed.

For a tutorial on fixing scripts like this, see the article Debugging Scripts.

Script Fragments

A script fragment is a script that is 'incomplete' because it is missing a hat block. A script fragment will not run during normal execution of a project, because nothing triggers the code. It is possible to run a script fragment by being in the Project Editor and clicking on it. They are commonly used to create thumbnails because of the ability to show a sprite that isn't visible while normally running the project. Script fragments can be stored in the Backpack, and can easily be popped onto a hat to run the code. Each block in the editor is a script fragment.

Script fragments can be used to integrate a game into an OS by pulling scripts off of When Green Flag Clicked and placing them under an When I Receive () block, usually with the help of the backpack.

Answered by saanvibakshi
0

Answer:

Explanation:

click "start a||||| new project|||||| "button

Similar questions