WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do you have a Nunchuck Axis HOLD DOWN a button?? HELP!!!

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
thagerty



Joined: 01 Feb 2007
Posts: 35

Digg It
PostPosted: Mon Feb 05, 2007 11:01 pm    Post subject: How do you have a Nunchuck Axis HOLD DOWN a button?? HELP!!!

What i want is to have it so that everytime I raise (NOT FLICK) the Nunchuck (pitch) straight up, that a key on the keyboard (or PPJOY button) will be KEPT PRESSED until I lower the Nunchuck back down.

I want to use this for a Super Punch OUT (on an SNES emulator)script i made. Everything else works great,but i want it so that it plays kind of like Wii sports Boxing. For now i just hold the B button to keep your gloves up.

When the Remote and Nunchuck are held straight up, this will then keep the SNES "up" control held down (this keeps your gloves up). When the Remote and Nunchuck come down to being close to or past level then the SNES "up" control will be released (this puts your gloves at your body).

I know how to use the axis's mostly, but not how to keep any button or key HELD DOWN.....

PLEASE HELP!!!
Back to top
View user's profile Send private message
TylerK



Joined: 18 Dec 2006
Posts: 384
Location: Springfield, IL

Digg It
PostPosted: Mon Feb 05, 2007 11:39 pm    Post subject:

You should be able to keep it held down by assigning the pitch to the key.

Code:
Key.Up = Wiimote.Nunchuk.Pitch > 40
Back to top
View user's profile Send private message
thagerty



Joined: 01 Feb 2007
Posts: 35

Digg It
PostPosted: Tue Feb 06, 2007 2:40 am    Post subject:

This seems to only push it once instead of keeping it down....
Back to top
View user's profile Send private message
TylerK



Joined: 18 Dec 2006
Posts: 384
Location: Springfield, IL

Digg It
PostPosted: Tue Feb 06, 2007 4:16 am    Post subject:

Make sure you try it in the game. It will look like the key was just pressed once if you try it in Notepad, but in game it should keep the button held down. Worked for me in two emulators and two PC games.
Back to top
View user's profile Send private message
thagerty



Joined: 01 Feb 2007
Posts: 35

Digg It
PostPosted: Tue Feb 06, 2007 5:05 am    Post subject:

Funny you say that cuse tha's exactly what i did was try it in notepad....will try again. Thanks....
Back to top
View user's profile Send private message
CarlKenner
Site Admin


Joined: 29 Nov 2006
Posts: 614

Digg It
PostPosted: Tue Feb 06, 2007 6:23 pm    Post subject:

I am getting very sick of people saying it won't hold down keys just because it doesn't do the key repeat in notepad.
Back to top
View user's profile Send private message Send e-mail
thagerty



Joined: 01 Feb 2007
Posts: 35

Digg It
PostPosted: Wed Feb 07, 2007 2:31 am    Post subject:

Hehe...sorry Carl. Sad I can imagine your frustration Evil or Very Mad with A LOT of people doing the same thing. When i tried it in SPO, i thought it wasn't working until i realised the boxer doesn't raise his gloves until AFTER you throw the punch.

Now i have it working great! Thanks again guys....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group