Navigasi Materi

Scratch Materi 4 - Control dan Repetition

Scratch Materi 4 - Control & Repetition

🐱 Scratch Materi 4

Control & Repetition

Membuat Sprite Mengulang Perintah

Making a Sprite Repeat Commands

🎯 Tujuan Pembelajaran / Learning Objectives

🔁 Repeat

🇮🇩 Siswa memahami fungsi repeat untuk mengulang perintah.

🇬🇧 Students understand how repeat is used to repeat commands.

♾️ Forever

🇮🇩 Siswa memahami bahwa forever menjalankan perintah berulang-ulang.

🇬🇧 Students understand that forever runs commands repeatedly.

🧩 Efficiency

🇮🇩 Siswa memahami bahwa repetition membuat script lebih singkat dan efisien.

🇬🇧 Students understand that repetition makes a script shorter and more efficient.

📚 Konsep Dasar / Basic Concepts

🔁 Repeat

repeat digunakan untuk melakukan perintah beberapa kali.

The repeat block performs commands a specific number of times.

♾️ Forever

forever membuat perintah terus dijalankan selama program aktif.

The forever block keeps commands running while the program is active.

⏱️ Wait

wait memberikan jeda sehingga perubahan dapat terlihat satu per satu.

The wait block creates a pause so changes can be seen step by step.

🧩 Scratch Vocabulary

Control
Mengatur bagaimana program berjalan.
Repeat
Mengulang perintah beberapa kali.
Forever
Mengulang perintah terus-menerus.
Wait
Memberikan jeda.
Loop
Proses pengulangan dalam program.
Sequence
Urutan perintah dalam program.

💡 Mengapa Menggunakan Repeat?

🇮🇩 Bayangkan kita ingin membuat Sprite bergerak 4 kali. Tanpa repeat, kita harus menulis block yang sama berkali-kali.

🇬🇧 Imagine we want the Sprite to move 4 times. Without repeat, we have to use the same block many times.

Tanpa Repeat / Without Repeat

when green flag clicked
move 10 steps
move 10 steps
move 10 steps
move 10 steps

Dengan Repeat / With Repeat

when green flag clicked
repeat 4
move 10 steps

Repeat 4 berarti perintah di dalamnya dilakukan sebanyak 4 kali.

⬛ Repeat Membuat Pola

🇮🇩 Kita dapat menggunakan repetition untuk membuat bentuk. Perhatikan contoh berikut.

🇬🇧 We can use repetition to create shapes. Look at the example below.

when green flag clicked
repeat 4
move 30 steps
turn 90 degrees

🔎 Sprite melakukan dua tindakan sebanyak 4 kali: move → turn → move → turn...

Hasilnya adalah pola berbentuk persegi.

🖱️ Practice Area — Coba Sendiri!

🇮🇩 Pilih jumlah pengulangan dan jalankan. Perhatikan Sprite bergerak berulang kali.

🇬🇧 Choose the number of repetitions and run the program. Watch the Sprite move repeatedly.

🔁 Repeat



Choose repeat.
Practice Stage
🐱
Choose repeat

⭐ Challenges — Build Your Script!

🇮🇩 Sekarang kita menggunakan cara yang sudah kita pelajari pada Materi 3: Drag & Drop → Script Area → Run Script → Stage.

🇬🇧 Now we use the method we learned in Lesson 3: Drag & Drop → Script Area → Run Script → Stage.

⭐ Challenge 1 — Repeat the Movement

🇮🇩 Buat Sprite bergerak 4 kali.

🇬🇧 Make the Sprite move 4 times.

🧱 Block Library
when green flag clicked
repeat 4
repeat 2
move 10 steps
📝 Script Area
Drag blocks here
Build your script.
🎬 Stage — Execution Result
Challenge 1
🐱
Waiting for script...

⭐ Challenge 2 — Make a Square

🇮🇩 Buat Sprite membentuk persegi dengan menggunakan repeat 4.

🇬🇧 Make the Sprite create a square using repeat 4.

🧱 Block Library
when green flag clicked
repeat 4
move 30 steps
turn 90 degrees
📝 Script Area
Drag blocks here
Build your square script.
⬛ Stage — Square
Challenge 2
🐱
Waiting for script...

⭐ Challenge 3 — Repeat with Wait

🇮🇩 Buat Sprite bergerak 5 kali dengan jeda.

🇬🇧 Make the Sprite move 5 times with a pause.

🧱 Block Library
when green flag clicked
repeat 5
move 10 steps
wait 1 seconds
📝 Script Area
Drag blocks here
Build your script.
⏱️ Stage — Step by Step
Challenge 3
🐱
Waiting for script...

⭐ Challenge 4 — Forever

🇮🇩 Buat Sprite bergerak berulang menggunakan forever.

🇬🇧 Make the Sprite move repeatedly using forever.

💡 Dalam simulator ini, forever dibatasi beberapa putaran agar animasi dapat dihentikan dengan aman.

🧱 Block Library
when green flag clicked
forever
move 10 steps
📝 Script Area
Drag blocks here
Build your forever script.
♾️ Stage — Repetition
Challenge 4
🐱
Waiting for script...

💭 Reflection / Refleksi

Centang pernyataan yang sudah dapat kamu lakukan.
Check the statements you can already do.

📝 Mini Quiz

1. Apa fungsi repeat 4?
What does repeat 4 do?
2. Apa yang terjadi pada block di dalam repeat?
What happens to blocks inside repeat?
3. Berapa kali perintah dilakukan pada repeat 6?
How many times does a command run in repeat 6?
4. Block apa yang membuat Sprite terus mengulang perintah?
Which block makes the Sprite repeat commands continuously?
5. Mengapa repeat membuat script lebih efisien?
Why does repeat make a script more efficient?

🚀 Next Lesson

Materi 5 — Variables

🇮🇩 Kita akan belajar bagaimana Scratch menyimpan informasi menggunakan Variables.

🇬🇧 We will learn how Scratch stores information using Variables.