| View previous topic :: View next topic |
| Author |
Message |
kunalkunal2
Joined: 13 Dec 2006 Posts: 279
Digg It |
Posted: Tue Dec 26, 2006 5:31 pm Post subject: |
|
|
| can u make it with the y axis ? so when i shoot a gun in jedi academy i can aim? |
|
| Back to top |
|
 |
JoCliMe
Joined: 15 Dec 2006 Posts: 16 Location: El Centro, CA
Digg It |
Posted: Tue Dec 26, 2006 8:25 pm Post subject: |
|
|
| kunalkunal2 wrote: | | can u make it with the y axis ? so when i shoot a gun in jedi academy i can aim? |
Well, whenever I try it, it causes the aim to jerk when you swing the lightsaber. What I'm thinking of doing is making it so when you hold B and hit up/down your aim goes up and down. But all my attempts to get multiple button combinations haven't revealed very good results. If anyone has any suggestions, I'd appreciate it. |
|
| Back to top |
|
 |
jedidove
Joined: 23 Dec 2006 Posts: 10
Digg It |
Posted: Wed Dec 27, 2006 12:12 am Post subject: |
|
|
Try something like:
| Code: |
if Wiimote.B && Wiimote.Up
[aim up key] = true
else
[aim up key] = false
end if
if Wiimote.B && Wiimote.Down
[aim down key] = true
else
[aim down key] = false
end if
|
|
|
| Back to top |
|
 |
JoCliMe
Joined: 15 Dec 2006 Posts: 16 Location: El Centro, CA
Digg It |
Posted: Wed Dec 27, 2006 1:42 am Post subject: |
|
|
| That's what I was trying, I was hoping for a way that would make the primary purpose of the buttons not work when two were pressed simultaneously..but I changed the code (see the edit in 3rd post) so now you can look up and down. |
|
| Back to top |
|
 |
CarlKenner Site Admin
Joined: 29 Nov 2006 Posts: 614
Digg It |
Posted: Wed Dec 27, 2006 9:40 am Post subject: |
|
|
| jedidove wrote: | Try something like:
| Code: |
if Wiimote.B && Wiimote.Up
[aim up key] = true
else
[aim up key] = false
end if
if Wiimote.B && Wiimote.Down
[aim down key] = true
else
[aim down key] = false
end if
|
|
Actually it is better to do this:
| Code: | [aim up key] = Wiimote.B && Wiimote.Up
[aim down key] = Wiimote.B && Wiimote.Down |
|
|
| Back to top |
|
 |
kunalkunal2
Joined: 13 Dec 2006 Posts: 279
Digg It |
Posted: Wed Dec 27, 2006 5:47 pm Post subject: |
|
|
i made the command for the up/down sequence
here it is
| Code: | //Look Up/Down
pagedown = wiimote.RawForceZ + 5 < -8
pageup = wiimote.RawForceZ + 5 > 8 |
and can someone help me to change the RawForceZ to gx? |
|
| Back to top |
|
 |
CarlKenner Site Admin
Joined: 29 Nov 2006 Posts: 614
Digg It |
Posted: Wed Dec 27, 2006 6:47 pm Post subject: |
|
|
| Code: | //Look Up/Down
pagedown = wiimote.gz < -8/30
pageup = wiimote.gz > 8/30 |
|
|
| Back to top |
|
 |
|