Detail Course
Scratch Intermediate for Game
Mode Preview
BAB 2 — Event Lanjutan & Sistem Kontrol yang Lebih Rapi

2.9 Menggunakan Tombol Aksi

5 Menit Lesson Teks Lesson Gratis

Lesson Berbasis Teks. Pelajari materi di tab Overview di bawah. Kerjakan quiz setelah selesai membaca.

Suka kontennya? Beli course ini!

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

Di game intermediate, tombol aksi sangat penting.

Contoh tombol aksi:

  • spasi = lompat
  • Z = serang
  • X = dash
  • E = interaksi
  • P = pause

Contoh tombol lompat:


when [space] key pressed
change y by 20

Contoh tombol serang:

when [z] key pressed
broadcast [attack]

Contoh tombol interaksi:

when [e] key pressed
broadcast [interact]

Kenapa perlu dipisah?

Supaya:

  • kontrol lebih jelas
  • aksi tidak bercampur dengan gerak
  • mudah ditambah fitur baru


Materi Download Tersedia

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

Enroll Sekarang