This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-07-09 20:52:59

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Possibly the first Wii Scratch game ever made!

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:

Code:

/*
 * 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?)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#2 2010-07-09 21:49:36

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Possibly the first Wii Scratch game ever made!

On a Mac, you don't even need a code, you just use DarwiinRemote!


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-07-10 03:39:42

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Possibly the first Wii Scratch game ever made!

Ive done it...


You can now reach me on Twitter @johnnydean1_

Offline

 

#4 2010-07-10 05:45:32

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Possibly the first Wii Scratch game ever made!

it's neat, but glovepie provides support for wiimotes anyway, it's not hard to use it as a cursor and part keyboard.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#5 2010-07-10 07:01:00

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: Possibly the first Wii Scratch game ever made!

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...)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#6 2010-07-10 08:38:02

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Possibly the first Wii Scratch game ever made!

Ummm... not really a Wii Scratch game... its just a program which converts the Wii mote's outputs to keyboard buttons etc.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#7 2010-07-10 09:38:51

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Possibly the first Wii Scratch game ever made!

Wat about the Nunchuck?

Offline

 

#8 2010-07-10 10:16:48

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Possibly the first Wii Scratch game ever made!

Billybob-Mario wrote:

Wat about the Nunchuck?

GlovePIE supports that aswell, im sure.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#9 2010-07-10 11:05:57

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: Possibly the first Wii Scratch game ever made!

Billybob-Mario wrote:

Wat about the Nunchuck?

The game diesn't need a nunchuck. But I'm sure I could make one that does.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#10 2010-07-29 14:34:39

vortex19
Scratcher
Registered: 2009-06-03
Posts: 100+

Re: Possibly the first Wii Scratch game ever made!

Can this detect how much the Nunchuck analog stick is tilted (like halfway versus all the way or barely at all)?

Offline

 

#11 2010-07-30 09:53:49

msfan98
Scratcher
Registered: 2010-05-26
Posts: 29

Re: Possibly the first Wii Scratch game ever made!

Too bad I don't have a Wii... XD


http://badges.steamprofile.com/profile/default/steam/76561198045923154.png

Offline

 

#12 2010-07-30 09:54:33

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Possibly the first Wii Scratch game ever made!

msfan98 wrote:

Too bad I don't have a Wii... XD

You should get one, they're amazing!


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#13 2010-07-30 14:16:29

bendad
Scratcher
Registered: 2008-06-14
Posts: 100+

Re: Possibly the first Wii Scratch game ever made!

ScratchReallyROCKS wrote:

msfan98 wrote:

Too bad I don't have a Wii... XD

You should get one, they're amazing!

yeah, they are!!!


Hi!  big_smile
Good to see you. (Even if I don't know you  wink  )

Offline

 

#14 2010-12-31 19:28:52

MixMaster407
Scratcher
Registered: 2009-07-08
Posts: 6

Re: Possibly the first Wii Scratch game ever made!

Nintendo should make a scratch channel or make a hardrive for wii  cool

Offline

 

#15 2011-01-01 08:06:57

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Possibly the first Wii Scratch game ever made!

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)


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#16 2011-01-14 05:29:02

loldog
Scratcher
Registered: 2009-12-19
Posts: 24

Re: Possibly the first Wii Scratch game ever made!

its not working for me.

Offline

 

#17 2011-04-29 07:14:58

msfan98
Scratcher
Registered: 2010-05-26
Posts: 29

Re: Possibly the first Wii Scratch game ever made!

bendad wrote:

ScratchReallyROCKS wrote:

msfan98 wrote:

Too bad I don't have a Wii... XD

You should get one, they're amazing!

yeah, they are!!!

never mind, i just got one!


http://badges.steamprofile.com/profile/default/steam/76561198045923154.png

Offline

 

Board footer