Yup. There it is. (to be more precice, here.) The first Wii Scratch game ever made.
If you want to use the WiiMote, you will need to copy the following code into GlovePIE:
/* * wiimote 2 scratch- MOUSE METHOD (not tapping method.) alpha2 by AddZero * * How to use: * 1. Press "Run" button above. * 2. Start the scratch program. (in scratch or on website.) * 3. Press the "Home" on the wiimote to turn ON and OFF tilt reporting. * This moves the mouse depending on the pitch and roll of the wiimote. * The scratch converts this into the pitch and roll variables. * ONLY turn this on while the scratch program is active. */ //Key mappings: Up = wiimote.Right Down = wiimote.Left Left = wiimote.Up Right = wiimote.Down A = wiimote.A B = wiimote.B P = wiimote.Plus M = wiimote.Minus O = wiimote.One T = wiimote.Two H = wiimote.Home L = Wiimote.Battery wiimote.Led1 = true //toggle acceleration/tilt reporting with Home button if wiimote.Home = true if var.accel = false then var.mouseoffsetX= mouse.CursorPosX var.mouseoffsetY= mouse.CursorPosY mouse.LeftButton = true wait 250 ms mouse.LeftButton = false wait 250 ms mouse.CursorPosX = mouse.CursorPosX + 100 //it moves the mouse 100 so scratch can figure out the mouse scale. //so it works correctly in fullscreen or shrunk as well. wait 500 ms var.accel = true wiimote.Led4 = true elseif var.accel=true then var.accel = false wiimote.Led4 = false mouse.CursorPosX = var.mouseoffsetX mouse.CursorPosY = var.mouseoffsetY end if wait .5 s end if //it moves the mouse depending on the roll and pitch if var.accel= true mouse.CursorPosX = var.mouseoffsetX + (wiimote.SmoothRoll div 2) mouse.CursorPosY = var.mouseoffsetY + (wiimote.SmoothPitch div 2) end if if keyboard.Space ExitProgram() end if
And voila! You can now play a Scratch game with your WiiMote! (Never thought that would happen, did you?)
Offline
On a Mac, you don't even need a code, you just use DarwiinRemote!
Offline
Ive done it...
Offline
sparks wrote:
it's neat, but glovepie provides support for wiimotes anyway, it's not hard to use it as a cursor and part keyboard.
Yes, but its a little bit harder to steer with the mouse.
And think, if you're using the wiimote, its a Wii game!
(Well, that last part was obvious, but still...)
Offline
Ummm... not really a Wii Scratch game... its just a program which converts the Wii mote's outputs to keyboard buttons etc.
Offline
Wat about the Nunchuck?
Offline
Billybob-Mario wrote:
Wat about the Nunchuck?
GlovePIE supports that aswell, im sure.
Offline
Billybob-Mario wrote:
Wat about the Nunchuck?
The game diesn't need a nunchuck. But I'm sure I could make one that does.
Offline
Can this detect how much the Nunchuck analog stick is tilted (like halfway versus all the way or barely at all)?
Offline
msfan98 wrote:
Too bad I don't have a Wii... XD
You should get one, they're amazing!
Offline
Nintendo should make a scratch channel or make a hardrive for wii
Offline
What do you mean? Everyone, search the Scratch Forums for Wii2Scratch... Uses remote sensor connections to link directly into scratch
EDIT: Quite hard to find through search, Google Code Link http://code.google.com/p/wii2scratch/downloads/list
Last edited by tcb (2011-01-01 08:09:22)
Offline