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 

buttons only being pressed once, then dont work

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



Joined: 08 Oct 2007
Posts: 16

Digg It
PostPosted: Sat Oct 13, 2007 4:39 pm    Post subject: buttons only being pressed once, then dont work

buttons not being pressed one time, they wont re press, heres the code ( and i tried it with key.up and key.down, and it only moved up and down once and then stoped working )


Code:
 if ( wiimote.nunchuk.joyy > .75 ) then
key.numpad2 = true
endif
if ( wiimote.nunchuk.joyy < -.75 ) then
key.numpad8  = true

endif


_________________
do it right, do it once, or dont do it at all
Back to top
View user's profile Send private message
Cha0s
Site Admin


Joined: 17 Jan 2007
Posts: 521

Digg It
PostPosted: Sat Oct 13, 2007 7:52 pm    Post subject:

I haven't really used GlovePIE, but perhaps try:
Code:

if ( wiimote.nunchuk.joyy > .75 ) then
key.numpad2 = true
key.numpad2 = false
endif
if ( wiimote.nunchuk.joyy < -.75 ) then
key.numpad8  = true
key.numpad8  = false
endif


If that doesn't work, try this (though it has other unintended side-effects):
Code:
if ( wiimote.nunchuk.joyy > .75 ) then
key.numpad2 = true
else
key.numpad2 = false
endif
if ( wiimote.nunchuk.joyy < -.75 ) then
key.numpad8  = true
else
key.numpad8 = false
endif

_________________
Cha0s
Back to top
View user's profile Send private message
big93



Joined: 08 Oct 2007
Posts: 16

Digg It
PostPosted: Sat Oct 13, 2007 11:35 pm    Post subject:

sry, nvrmind ths
_________________
do it right, do it once, or dont do it at all


Last edited by big93 on Sun Oct 14, 2007 6:52 am; edited 1 time in total
Back to top
View user's profile Send private message
big93



Joined: 08 Oct 2007
Posts: 16

Digg It
PostPosted: Sat Oct 13, 2007 11:36 pm    Post subject:

ok, i got it, idk if this is what is the simlest way ( kinda like ur way chaos )

Code:
 
if ( wiimote.nunchuk.joyy > 75 ) then
key.numpad1

elseif

key.numpad1 = false


_________________
do it right, do it once, or dont do it at all
Back to top
View user's profile Send private message
ryandapimp913



Joined: 11 May 2008
Posts: 2

Digg It
PostPosted: Mon May 12, 2008 2:48 am    Post subject: doesn't matter

you can use this
Code:

if ( wiimote.nunchuk.joyy > .75 ) then
key.numpad2 = true
else
key.numpad2 = false
endif

if ( wiimote.nunchuk.joyy < -.75 ) then
key.numpad8  = true
else
key.numpad8 = false
endif
 

or, you can use this

Code:

key.numpad2 = false
key.numpad8 = false

if ( wiimote.nunchuk.joyy > .75 ) then
key.numpad2 = true
endif
if ( wiimote.nunchuk.joyy < -.75 ) then
key.numpad8  = true

endif


Back to top
View user's profile Send private message Send e-mail
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