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 

video dark messiah wiimote mouvement

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



Joined: 19 Mar 2008
Posts: 66

Digg It
PostPosted: Fri May 09, 2008 6:25 pm    Post subject: video dark messiah wiimote mouvement

a short video of what could be done on dark messiah
http://www.dailymotion.com/jero38380/video/x5d2cq_dark-messiah-wiimote_videogames
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
kappa



Joined: 11 Apr 2008
Posts: 12

Digg It
PostPosted: Fri May 16, 2008 5:40 pm    Post subject:

Great work in the video. Can you please post the part of script you have so far for the game, so others (and myself) can experiment with it and gain better understanding of scripting?
Smile Smile thx in advance!!
_________________
xfire: bulletdeal
Back to top
View user's profile Send private message
jeromote



Joined: 19 Mar 2008
Posts: 66

Digg It
PostPosted: Sat May 17, 2008 4:27 pm    Post subject:

the script is not finished, it's just a test that I made on this game, but there is potential in this game with a wiimote
Code:

//action button
W = -2 < Wiimote1.Nunchuk.JoyY < -0.5
S = 2 > Wiimote1.Nunchuk.JoyY > 0.5
A = -2 < Wiimote1.Nunchuk.JoyX < -0.5
D = 2 > Wiimote1.Nunchuk.JoyX > 0.5
Keyboard.Space = Wiimote1.A
Mouse.WheelUp, 100 ms = wiimote1.Left
Mouse.MiddleButton = Wiimote1.Down
Mouse.WheelDown, 100 ms = Wiimote1.Right
Keyboard.E = Wiimote.Minus
Keyboard.Y = Wiimote.Plus
Key.LeftShift = wiimote1.Nunchuk.ZButton
Keyboard.escape = wiimote1.one
Shift + p + i + e = Wiimote1.two //Stop script

// look ( motion sensor nunchuk )
mouse.DirectInputY = mouse.DirectInputY + 5*deadzone(PPJoy1.Analog5)
mouse.DirectInputX = mouse.DirectInputX + 7*deadzone(PPJoy1.Analog6)
PPJoy.Analog6 = (smooth(-Wiimote1.Nunchuk.RawForceX))/30
PPJoy.Analog5 =(smooth(-Wiimote1.Nunchuk.RawForceZ))/30


//sword (movement wiimote)
key.d = wiimote.pitch > 70 degrees
if pressed (wiimote.pitch > 70 degrees)
wait 50 ms
key.d = 0
endif

key.S = 90 degrees > wiimote.Roll > 50 degrees
if pressed (90 degrees > wiimote.Roll > 50 degrees)
wait 50 ms
key.S = 0
endif

key.A = -90 degrees < wiimote.Roll < -50 degrees
if pressed (-90 degrees < wiimote.Roll < -50 degrees)
wait 50 ms
key.A = 0
endif

key.W =  wiimote.pitch < -40 degrees
if pressed (wiimote.pitch < -40 degrees)
wait 50 ms
key.W = 0
endif

mouse.LeftButton =   wiimote.Roll > 50 degrees or wiimote.Roll < -50 degrees  or wiimote.pitch > 70 degrees or wiimote.pitch < -50 degrees
mouse.LeftButton + Wiimote.Rumble = Wiimote1.RawForcex >= 60 m per s or Wiimote.B
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
kappa



Joined: 11 Apr 2008
Posts: 12

Digg It
PostPosted: Tue May 20, 2008 2:46 pm    Post subject:

Smile thx i'll expiriment with it and post results if they will be any good Very Happy
_________________
xfire: bulletdeal
Back to top
View user's profile Send private message
Nirkon



Joined: 10 Jun 2008
Posts: 10

Digg It
PostPosted: Fri Jun 13, 2008 5:59 pm    Post subject:

Seems interesting, ill probably make a script of my own for dark messiah when summer vacation comes Smile

still a month away for me
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