www.gmindo.web.id/forum
Forum ini sudah tidak dipakai lagi. Silakan ke forum baru di www.gmindo.web.id/forum Very Happy

Terima kasih

Join the forum, it's quick and easy

www.gmindo.web.id/forum
Forum ini sudah tidak dipakai lagi. Silakan ke forum baru di www.gmindo.web.id/forum Very Happy

Terima kasih
www.gmindo.web.id/forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

game maker joystick??

5 posters

Go down

game maker joystick?? Empty game maker joystick??

Post by DONI Wed 20 Feb 2013, 17:00

game maker support utk joystick pa gak ya??
DONI
DONI
GM Beginner
GM Beginner

75%
Jumlah posting : 104
Points : 110
Join date : 14.02.13

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by Arif_IndoFuture Wed 20 Feb 2013, 17:33

Kayanya Support, tapi pake *.dll, coba aja cari di google.
Google is the best Best Seller
Arif_IndoFuture
Arif_IndoFuture
GM Beginner
GM Beginner

100%
Jumlah posting : 316
Points : 279
Join date : 12.01.13
Age : 26
Lokasi : Jogja

https://www.facebook.com/IndonesianFuture

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by Pinneaple Studios Wed 20 Feb 2013, 18:02

support lah
mau bikin game apa?
Pinneaple Studios
Pinneaple Studios
GM Intermediate
GM Intermediate

100%
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by Kevin Blaze Coolerz Wed 20 Feb 2013, 18:44

gak pake *.dll jga bsa, coba lihat event Other (kalo gk salah), kan ad event untuk joystick
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 28
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by Pinneaple Studios Wed 20 Feb 2013, 19:30

Kevin Blaze Coolerz wrote:gak pake *.dll jga bsa, coba lihat event Other (kalo gk salah), kan ad event untuk joystick
ya deh, prasaan ada
Pinneaple Studios
Pinneaple Studios
GM Intermediate
GM Intermediate

100%
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by Asuna Wed 20 Feb 2013, 19:57

ada fungsinya ah, coba liat di help file Hammer
event joysticknya ga ada, tapi sebagai gantinya bisa pake event step dan if(joystick_check_button(id,numb))
Asuna
Asuna
Global Moderator
Global Moderator

100%
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by DONI Wed 20 Feb 2013, 22:55

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
DONI
GM Beginner
GM Beginner

75%
Jumlah posting : 104
Points : 110
Join date : 14.02.13

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by Asuna Wed 20 Feb 2013, 23:58

@DONI
gak kenapa2 game maker joystick?? 4237465583
katanya mau pake script tapi dasar2 pemrograman masih belum dikuasai Hammer
pelajari sendiri aja gih, di help filenya ada dasar2 syntaxnya game maker joystick?? 4284594497

anyway nice script, tinggal dicoba aja @TS Very Happy
Asuna
Asuna
Global Moderator
Global Moderator

100%
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by DONI Thu 21 Feb 2013, 00:15

makanya saya tanya...
DONI
DONI
GM Beginner
GM Beginner

75%
Jumlah posting : 104
Points : 110
Join date : 14.02.13

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by Asuna Thu 21 Feb 2013, 11:47

oke deh.. game maker joystick?? 883715920
Code:
switch (joystick_direction(1)) {
  case 101:
    // action 1
    break;
  case 102:
    // action 2
    break;
  case 100:
    // action 3
    break;
}
sama dengan
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:
Asuna
Asuna
Global Moderator
Global Moderator

100%
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by Pinneaple Studios Thu 21 Feb 2013, 13:26

mau bikin game apa sih pke joys-tick segala
Pinneaple Studios
Pinneaple Studios
GM Intermediate
GM Intermediate

100%
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D

Kembali Ke Atas Go down

game maker joystick?? Empty game maker joystick??

Post by DONI Thu 21 Feb 2013, 14:25

"Asuna"]oke deh..
Code:
switch (joystick_direction(1)) {
  case 101:
    // action 1
    break;
  case 102:
    // action 2
    break;
  case 100:
    // action 3
    break;
}
sama dengan
Code:
if (joystick_direction(1) == 101) {
    // action 1
} else if (joystick_direction(1) == 102) {
    // action 2
} else if (joystick_direction(1) == 100) {
    // action 3
}
kalo masih ga ngerti juga, if you know what I mean

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
DONI
GM Beginner
GM Beginner

75%
Jumlah posting : 104
Points : 110
Join date : 14.02.13

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by Asuna Thu 21 Feb 2013, 14:30

yup, itu kode input joystick

default = else, itu mah
Asuna
Asuna
Global Moderator
Global Moderator

100%
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13

Kembali Ke Atas Go down

game maker joystick?? Empty Re: game maker joystick??

Post by Sponsored content


Sponsored content


Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik