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 

WiiWars, Using your wiimote as a Lightsaber in a game
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
kunalkunal2



Joined: 13 Dec 2006
Posts: 279

Digg It
PostPosted: 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
View user's profile Send private message
JoCliMe



Joined: 15 Dec 2006
Posts: 16
Location: El Centro, CA

Digg It
PostPosted: 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
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
jedidove



Joined: 23 Dec 2006
Posts: 10

Digg It
PostPosted: 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
View user's profile Send private message
JoCliMe



Joined: 15 Dec 2006
Posts: 16
Location: El Centro, CA

Digg It
PostPosted: 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
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
CarlKenner
Site Admin


Joined: 29 Nov 2006
Posts: 614

Digg It
PostPosted: 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
View user's profile Send private message Send e-mail
kunalkunal2



Joined: 13 Dec 2006
Posts: 279

Digg It
PostPosted: 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
View user's profile Send private message
CarlKenner
Site Admin


Joined: 29 Nov 2006
Posts: 614

Digg It
PostPosted: 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
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
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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