Detail Course
Scratch Foundation for Game
Mode Preview

Video belum tersedia untuk lesson ini

BAB 4 — Control (Loop, If, dan Logika Dasar Game)

4.2 Mengenal Blok Control

5 menit Lesson Gratis

Course ini gratis! Daftar sekarang.

Kamu sedang melihat preview. Enroll untuk akses semua lesson, quiz, materi, dan sertifikat.

Blok control berwarna oranye


🔷 Jenis Blok Control Utama


1️⃣ Wait (Tunggu)

Blok:

wait 1 seconds

📌 Fungsi:

Memberi jeda waktu sebelum lanjut


2️⃣ Forever (Selamanya)

Blok:

forever

📌 Fungsi:

Mengulang terus tanpa berhenti


3️⃣ Repeat (Ulangi)

Blok:

repeat 10

📌 Fungsi:

Mengulang sesuai jumlah tertentu


4️⃣ If (Jika)

Blok:

if <condition> then

📌 Fungsi:

Menjalankan perintah jika kondisi benar


5️⃣ If Else

Blok:

if <condition> then
else

📌 Fungsi:

  • Jika benar → lakukan A
  • Jika salah → lakukan B

6️⃣ Repeat Until

Blok:

repeat until <condition>

📌 Fungsi:

Mengulang sampai kondisi terpenuhi


7️⃣ Stop

Blok:

stop all

📌 Fungsi:

Menghentikan program


Materi Download Tersedia

Enroll untuk mengakses semua materi dan file download dari course ini.

Enroll Sekarang