Author |
Message |
Hemin
|
Posted: Sun Jun 15, 2008 3:50 pm Post subject: Joystick pin and character |
|
|
Which pin and which character makes the joystick move help? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
riveryu

|
Posted: Sun Jun 15, 2008 9:05 pm Post subject: RE:Joystick pin and character |
|
|
I dont actually know what you are talking about but there is a joystick tutorial in the Tutorial section of this forum I think, maybe that will help? |
|
|
|
|
 |
Insectoid

|
Posted: Mon Jun 16, 2008 7:33 am Post subject: RE:Joystick pin and character |
|
|
I believe it is pins 10-13 and 15 for input, though I may be wrong.
riveryu- I think he wants to know which pins in the DB the joystick inputs through. Don't know what he means by 'character' though; is he looking for the binary representation of the pin number? |
|
|
|
|
 |
Hemin
|
Posted: Mon Jun 16, 2008 7:55 am Post subject: Re: Joystick pin and character |
|
|
i mean what would be the code for it to go left |
|
|
|
|
 |
Insectoid

|
Posted: Mon Jun 16, 2008 8:01 am Post subject: RE:Joystick pin and character |
|
|
you would have to use parallelget and use an if statement.
code: |
if joystick pressed left then
move guy left
end if
|
|
|
|
|
|
 |
Hemin
|
Posted: Mon Jun 16, 2008 8:04 am Post subject: Re: Joystick pin and character |
|
|
i need a real code not if joystick is pressed left |
|
|
|
|
 |
Insectoid

|
Posted: Mon Jun 16, 2008 8:12 am Post subject: RE:Joystick pin and character |
|
|
Well, perhaps you can ask your teacher? Or read a tutorial? Have you done parallelput yet? F10 it?
you need to play around with it. parallelget from the stick, then put whatever the input is to the screen. It will give you the exact numbers that you need. (I think) |
|
|
|
|
 |
Hemin
|
Posted: Mon Jun 16, 2008 8:09 pm Post subject: Re: Joystick pin and character |
|
|
i got it working i had to remove one of the code which was preventing it from going left but thanks for your help |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
|