game maker joystick??
5 posters
Halaman 1 dari 1
game maker joystick??
game maker support utk joystick pa gak ya??
DONI- GM Beginner
-
Jumlah posting : 104
Points : 110
Join date : 14.02.13
Re: game maker joystick??
Kayanya Support, tapi pake *.dll, coba aja cari di google.
Google is the best
Google is the best
Re: game maker joystick??
support lah
mau bikin game apa?
mau bikin game apa?
Pinneaple Studios- GM Intermediate
-
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D
Re: game maker joystick??
gak pake *.dll jga bsa, coba lihat event Other (kalo gk salah), kan ad event untuk joystick
Re: game maker joystick??
ya deh, prasaan adaKevin Blaze Coolerz wrote:gak pake *.dll jga bsa, coba lihat event Other (kalo gk salah), kan ad event untuk joystick
Pinneaple Studios- GM Intermediate
-
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D
Re: game maker joystick??
ada fungsinya ah, coba liat di help file
event joysticknya ga ada, tapi sebagai gantinya bisa pake event step dan if(joystick_check_button(id,numb))
event joysticknya ga ada, tapi sebagai gantinya bisa pake event step dan if(joystick_check_button(id,numb))
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: game maker joystick??
gan ane dah nemu script nya... tp yg ane pengen tanya case disini maksudnya apa? kenapa ditulisnya case 101?
- Code:
switch (joystick_direction(1)) {
case 101:
if (joy_right = true) { // Joystick release right
joy_right = false;
keyboard_key_release(vk_right);
}
if (joy_left = true) { // Joystick release left
joy_left = false;
keyboard_key_release(vk_left);
}
if (joy_up = true) { // Joystick release up
joy_up = false;
keyboard_key_release(vk_up);
}
if (joy_down = true) { // Joystick release down
joy_down = false;
keyboard_key_release(vk_down);
}
if (joy_up_and_right = true) { // Joystick release up and right
joy_up_and_right = false;
keyboard_key_release(vk_up);
keyboard_key_release(vk_right);
}
if (joy_up_and_left = true) { // Joystick release up and left
joy_up_and_left = false;
keyboard_key_release(vk_up);
keyboard_key_release(vk_left);
}
if (joy_right_and_down = true) { // Joystick release right and down
joy_right_and_down = false;
keyboard_key_release(vk_right);
keyboard_key_release(vk_down);
}
if (joy_left_and_down = true) { // Joystick release left and down
joy_left_and_down = false;
keyboard_key_release(vk_left);
keyboard_key_release(vk_down);
}
break;
case 102: // Joystick press right
joy_right = true;
keyboard_key_press(vk_right);
break;
case 100: // Joystick press left
joy_left = true;
keyboard_key_press(vk_left);
break;
case 104: // Joystick press up
joy_up = true;
keyboard_key_press(vk_up);
break;
case 98: // Joystick press down
joy_down = true;
keyboard_key_press(vk_down);
break;
case 105: // Joystick press up and right
joy_up_and_right = true;
keyboard_key_press(vk_up);
keyboard_key_press(vk_right);
break;
case 103: // Joystick press up and left
joy_up_and_left = true;
keyboard_key_press(vk_up);
keyboard_key_press(vk_left);
break;
case 99: // Joystick press right and down
joy_right_and_down = true;
keyboard_key_press(vk_right);
keyboard_key_press(vk_down);
break;
case 97: // Joystick press left and down
joy_left_and_down = true;
keyboard_key_press(vk_left);
keyboard_key_press(vk_down);
break;
}
if joystick_check_button(1,1) then // Joystick press button 1
{if joy_button_1=0 then
{joy_button_1=1}
keyboard_key_press(vk_control)}
else
{if joy_button_1=1 then // Joystick release button 1
{joy_button_1=0
keyboard_key_release(vk_control)}}
if joystick_check_button(1,3) then // Joystick press button 3
{if joy_button_3=0 then
{joy_button_3=1}
keyboard_key_press(vk_space)}
else
{if joy_button_3=1 then // Joystick release button 3
{joy_button_3=0
keyboard_key_release(vk_space)}}
if joystick_check_button(1,10) then // Joystick press button 10
{if joy_button_10=0 then
{joy_button_10=1}
keyboard_key_press(vk_enter)}
else
{if joy_button_10=1 then // Joystick release button 10
{joy_button_10=0
keyboard_key_release(vk_enter)}}
if joystick_check_button(1,9) then // Joystick press button 9
{if joy_button_9=0 then
{joy_button_9=1}
keyboard_key_press(vk_escape)}
else
{if joy_button_9=1 then // Joystick release button 9
{joy_button_9=0
keyboard_key_release(vk_escape)}}
if joystick_check_button(1,6) then // Joystick press button 6
{if joy_button_6=0 then
{joy_button_6=1}
keyboard_key_press(ord('P'))}
else
{if joy_button_6=1 then // Joystick release button 6
{joy_button_6=0
keyboard_key_release(ord('P'))}}
DONI- GM Beginner
-
Jumlah posting : 104
Points : 110
Join date : 14.02.13
Re: game maker joystick??
@DONI
gak kenapa2
katanya mau pake script tapi dasar2 pemrograman masih belum dikuasai
pelajari sendiri aja gih, di help filenya ada dasar2 syntaxnya
anyway nice script, tinggal dicoba aja @TS
gak kenapa2
katanya mau pake script tapi dasar2 pemrograman masih belum dikuasai
pelajari sendiri aja gih, di help filenya ada dasar2 syntaxnya
anyway nice script, tinggal dicoba aja @TS
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: game maker joystick??
makanya saya tanya...
DONI- GM Beginner
-
Jumlah posting : 104
Points : 110
Join date : 14.02.13
Re: game maker joystick??
oke deh..
- Code:
switch (joystick_direction(1)) {
case 101:
// action 1
break;
case 102:
// action 2
break;
case 100:
// action 3
break;
}
- Code:
if (joystick_direction(1) == 101) {
// action 1
} else if (joystick_direction(1) == 102) {
// action 2
} else if (joystick_direction(1) == 100) {
// action 3
}
- Spoiler:
- kalo masih ga ngerti juga, if you know what I mean
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: game maker joystick??
mau bikin game apa sih pke joys-tick segala
Pinneaple Studios- GM Intermediate
-
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D
game maker joystick??
"Asuna"]oke deh..
mirip java sih namanya percabangan yg kondisinya hanya dpt menggunakan perbandingan == (sam dengan)
klo utk angka 101=nokey, 102=right, 100=left, itu sebuah id joystick kah.? yg default gk bsa kita rubah angkanya sesuai kemauan kita??
- Code:
switch (joystick_direction(1)) {
case 101:
// action 1
break;
case 102:
// action 2
break;
case 100:
// action 3
break;
}
- Code:
if (joystick_direction(1) == 101) {
// action 1
} else if (joystick_direction(1) == 102) {
// action 2
} else if (joystick_direction(1) == 100) {
// action 3
}
mirip java sih namanya percabangan yg kondisinya hanya dpt menggunakan perbandingan == (sam dengan)
klo utk angka 101=nokey, 102=right, 100=left, itu sebuah id joystick kah.? yg default gk bsa kita rubah angkanya sesuai kemauan kita??
Terakhir diubah oleh DONI tanggal Thu 21 Feb 2013, 14:25, total 1 kali diubah (Reason for editing : jbj)
DONI- GM Beginner
-
Jumlah posting : 104
Points : 110
Join date : 14.02.13
Re: game maker joystick??
yup, itu kode input joystick
default = else, itu mah
default = else, itu mah
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Similar topics
» FisherCS Presentations "Mudah Membuat Game dengan Game Maker - Seri Pertama"
» Membuat Game Online Sederhana Dengan Game Maker 8.0
» [ASK]Apakah Game Maker Bisa Bikin Game Catur ??
» Export Game dari Game Maker 8.0 Ke Android
» [ASK] Game Maker 8.1 ga bisa di run
» Membuat Game Online Sederhana Dengan Game Maker 8.0
» [ASK]Apakah Game Maker Bisa Bikin Game Catur ??
» Export Game dari Game Maker 8.0 Ke Android
» [ASK] Game Maker 8.1 ga bisa di run
Halaman 1 dari 1
Permissions in this forum:
Anda tidak dapat menjawab topik