| View previous topic :: View next topic |
| Author |
Message |
jeromote

Joined: 19 Mar 2008 Posts: 66
Digg It |
|
| Back to top |
|
 |
kappa
Joined: 11 Apr 2008 Posts: 12
Digg It |
Posted: 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?
thx in advance!! _________________ xfire: bulletdeal |
|
| Back to top |
|
 |
jeromote

Joined: 19 Mar 2008 Posts: 66
Digg It |
Posted: 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 |
|
 |
kappa
Joined: 11 Apr 2008 Posts: 12
Digg It |
Posted: Tue May 20, 2008 2:46 pm Post subject: |
|
|
thx i'll expiriment with it and post results if they will be any good  _________________ xfire: bulletdeal |
|
| Back to top |
|
 |
Nirkon
Joined: 10 Jun 2008 Posts: 10
Digg It |
Posted: 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
still a month away for me |
|
| Back to top |
|
 |
|