Anda di halaman 1dari 3

Tutorial Membuat Game Ular (Game Ular Klasik)

Membuat Sprite
1. Klik kanan pada Folder Sprite pilih Create Sprite.
2. Pada bagian name ketikkan namanya menjadi spr_lantai
3. Klik tombol Edit spirte. Setelah muncul Sprite Editor, Klik File pilih New
4. Gambarkan satu buah rectangle dengan ukuran 32 x 32

5. Lalu Close tampilan Image Editor dan tampilan Sprite Editor
6. Lakukan langkah 1 sampai 5 sebanyak 2 kali, beri nama spritenya spr_point dan sprite2
Gambar spr_point Gambar sprite2


Membuat Font
1. Klik kanan pada folder font pilih Create Font
2. Pada property Font Ubah menjadi Comic Sans MS
3. Size = 17
4. CheckList Bold
5. Karakter range 65-122
6. Klik tombol OK

Membuat Background
1. Klik kanan background pilih Create Background
2. Name=bg_pesan
3. Klik edit
4. New ubah lembar kerja menjadi 425 x 175
5. Gambarkan seperti berikut





Membuat Room
1. Klik Kanan Room Create new room
Game Ular Klasik Mr. Andi
Kamu kalah
Mau diulangi
2. Pada tab setting
3. Caption : Game Ular Klasik Mr. Andi
4. 640 x 480
5. Snap 32 x 32
6. Gambarkan Room seperti tampilan berikut
7.

Membuat Object
1. Klik kanan object create Object
2. Properti Name obj_mlantai
3. Klik kanan add Event pilih create
4. Pada bagian action aktif di tab control pilih Excetue code ketikkan kode berikut
Image_blend=16777215;
5. Klik OK
6. Obj_kepala
7. Add event create
8. Action execute code
image_blend=255;
Dir=9;
Lv=10;
Sp=4;
Can_move=true;
9. Add Event Destroy
10. Action Exceture Code
Effect_create_above(ef_ring,x+15,y+15,2,255);
Sound_play(sd_kalah);
Instance_create(x,y,obj_berakhir);
Background_color=255;
11. Add Event-Alarm0 action Execute code ketikkan kode can_move=true;
12. Add event step action execute code ketikkan kode berikut:
If (can_move=true){
{
If (dir=0) x=x+32;
If (dir=180) x=x-32;
If (dir=90) y=y-32;
If (dir=270) y=y+32;
Can_move=false;
Alarm[0]=sp;
}
If (x<0 or x>608 or y<0 or y>448)
Destroy_instance();
13. Add event Collision Action Execute Code ketikkan kode berikut
with (other) instance_change(obj_tubuh,1);
14. Add Event KeyPress <Left> Action Execute Code ketikkan kode berikut
if !(dir=0) dir=180;
15. Add Event KeyPress <Right> Action Execute Code ketikkan kode berikut
if !(dir=180) dir=0;
16. Add Event KeyPress <UP> Action Execute Code ketikkan kode berikut
if !(dir=270) dir=90;
17. Add Event KeyPress <Down> Action Execute Code ketikkan kode berikut
if !(dir=90) dir=270;
18. <<menit 23:00)

Anda mungkin juga menyukai