# 🐱 Scratch Basics (BGE)

In this section, pupils will learn the key building blocks of programming using Scratch. They will create interactive programs using sprites, code blocks, and events.

### ⌨️ **Input**

**Input** is how a program receives data from the user.\
In Scratch, this is often done using keyboard presses, mouse clicks, or asking questions.

Examples include:

* Pressing a key
* Clicking a sprite
* Typing an answer

➡️ *Insert video here*

***

### ⚙️ **Process**

**Process** is where the program works with the data.\
In Scratch, this might include calculations or changing variables.

➡️ *Insert video here*

***

### 🖥️ **Output**

**Output** is what the program shows to the user.\
In Scratch, this can be visuals, sounds, or messages.

Examples include:

* Saying something using speech bubbles
* Changing costumes
* Playing sounds

➡️ *Insert video here*

***

### 🔀 **Selection**

**Selection** allows the program to make decisions.\
Scratch uses **if** and **if else** blocks to control what happens.

➡️ *Insert video here*

***

### 🧭 **Sequencing**

**Sequencing** means instructions are followed in order.\
The order of blocks in Scratch affects how the program behaves.

➡️ *Insert video here*

***

### 🔄 **Iteration**

**Iteration** means repeating code.\
In Scratch, this is done using loops like **repeat** and **forever**.

➡️ *Insert video here*

***

### 🎮 **Mini Project**

Now it’s time to bring everything together.

Create a Scratch project that uses:

* Input (e.g. key press or mouse click)
* Process (changing values or calculations)
* Output (movement, sound, or speech)
* Selection
* Sequencing
* Iteration

➡️ *Insert project video here*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://upskilling.stacs.scot/physical-computing-l2-bge/scratch-basics-bge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
