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

#1 2012-01-20 09:49:39

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Welcome to the official Govepie Scratch discussion! If you have any questions about glovepie, just ask them here!!


Did you know that you can play most scratch projects with a wiimote? All you need, is the program Glovepie, and you'll be well on your way to playing most scratch games with your wiimote! Glovepie is a simple program, that simply put, let's you assign a key press, or mouse movement, with your wiimote. For an example: Could you imagine playing minecraft with your wiimote? That'd be pretty epic, huh? What if you could control your computer with your wiimote. You could do a TON with that. You could even control your favorite music player with your wiimote. For an example, you could make the plus button make the music get louder, the minus button make it quieter, the left and right arrows o change song, they one and two buttons to get to your favorite play list and back to all of the other music, and the A button to play/pause. You could be ANYWHERE in range, (Pretty far) and you could control the music. You could even use your wiimote in powerpoint presentations! There are no limitations that you have with glovepie!


What should you post below? Anything related to glovepie. Any questions, scripts, ideas, tutorials ect. Just post them here. I'll put the top, and useful posts right in this post, so you can easily come back to them when ever you want! I hope you guys enjoy controlling your computer with glovepie  big_smile


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#2 2012-01-20 10:06:12

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Here's a really neat script I found that makes almost any wiimote controllable with a wiimote. (Note: I got this script from: squarephoenix.com/glovepie_scripts.html You can find a few other scripts here as well!)

This script should work with any media player that supports the special keyboard keys for Play, Pause, Stop, Next Track, Previous Track, Volume, and Mute. Your keyboard does not need these special keys for the script to work. With some programs, like Windows Media Player 11, you can use the Wiimote to control your music without having to keep the media player in the foreground.

Code:

// created and hosted by the owner of www.squarephoenix.com
// please do not try to claim this work as your own

var.lit = 200ms

If Wiimote.One then
  var.locked = 1
endif

If Wiimote.A && Wiimote.B then
  var.locked = 0
endif

If var.locked == 1 then
  Wiimote.Leds = 15
    wait var.lit*4
  Wiimote.Leds = 0
    wait var.lit*4
else

if Wiimote.Plus then
  press(NextTrack)
  Wiimote.Led4 = 1
  wait var.lit
  Wiimote.Led4 = 0
  release(NextTrack)
endif

if Wiimote.Minus then
  press(PrevTrack)
  Wiimote.Led1 = 1
  wait var.lit
  Wiimote.Led1 = 0
  release(PrevTrack)
endif

if Wiimote.A then
  press(PlayPause)
  Wiimote.Leds = 15
    wait var.lit
  Wiimote.Leds = 0
  release(PlayPause)
endif

if Wiimote.Home then
  press(Mute)
    wait var.lit
  release(Mute)
endif

if Wiimote.Down then
  press(VolumeDown)
    wait 50ms
  release(VolumeDown)
  press(VolumeDown)
    wait 50ms
  release(VolumeDown)
  press(VolumeDown)
    wait 50ms
  release(VolumeDown)
endif

if Wiimote.Up then
  press(VolumeUp)
    wait 50ms
  release(VolumeUp)
  press(VolumeUp)
    wait 50ms
  release(VolumeUp)
  press(VolumeUp)
    wait 50ms
  release(VolumeUp)
endif

if Wiimote.Up then
  Wiimote.Led1 = 1
    wait var.lit/4
  Wiimote.Led1 = 0
  Wiimote.Led2 = 1
    wait var.lit/4
  Wiimote.Led2= 0
  Wiimote.Led3 = 1
    wait var.lit/4
  Wiimote.Led3 = 0
  Wiimote.Led4 = 1
    wait var.lit/4
  Wiimote.Leds = 0
endif

if Wiimote.Down then
  Wiimote.Led4 = 1
    wait var.lit/4
  Wiimote.Led4 = 0
  Wiimote.Led3 = 1
    wait var.lit/4
  Wiimote.Led3= 0
  Wiimote.Led2 = 1
    wait var.lit/4
  Wiimote.Led2 = 0
  Wiimote.Led1 = 1
    wait var.lit/4
  Wiimote.Leds = 0
endif

if Wiimote.Two then
  press(Keyboard.MediaStop)
    wait var.lit
  release(Keyboard.MediaStop)
endif

endif

http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#3 2012-01-20 10:18:57

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Cool, cool! There was another discussion about connecting your wiimotes to Scratch, but it's probably buried.

The script looks like Ruby surprisingly enough.

Well, nice find!

Offline

 

#4 2012-01-20 10:58:52

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Magnie wrote:

Cool, cool! There was another discussion about connecting your wiimotes to Scratch, but it's probably buried.

The script looks like Ruby surprisingly enough.

Well, nice find!

Do you have any scripts?


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#5 2012-01-20 13:20:33

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

elfin8er wrote:

Magnie wrote:

Cool, cool! There was another discussion about connecting your wiimotes to Scratch, but it's probably buried.

The script looks like Ruby surprisingly enough.

Well, nice find!

Do you have any scripts?

No, I don't have a wii or wiimote.  hmm

Offline

 

#6 2012-01-20 13:47:37

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Magnie wrote:

elfin8er wrote:

Magnie wrote:

Cool, cool! There was another discussion about connecting your wiimotes to Scratch, but it's probably buried.

The script looks like Ruby surprisingly enough.

Well, nice find!

Do you have any scripts?

No, I don't have a wii or wiimote.  hmm

You should pick one up. They're worth the ten to fifteen bucks.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#7 2012-01-20 13:57:40

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

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

I've always been interested in this, but I have a mac. Has anybody tried this with DarwiinRemote? (A mac version of glovepie).


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

Offline

 

#8 2012-01-20 14:25:54

rabbit1131
Scratcher
Registered: 2009-10-16
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Minecraft on the wiimote  yikes
Epicness.


The Intergalactic Adventures of Revesilia! I hope you will partake in this gigantic undertaking, to build the sequel to the hit map The Adventures of Revesilia! The Intergalactic Adventures of Revesilia Map Builders Application thread! http://internetometer.com/image/35004.png

Offline

 

#9 2012-01-20 15:25:37

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

bendad wrote:

I've always been interested in this, but I have a mac. Has anybody tried this with DarwiinRemote? (A mac version of glovepie).

Has anyone tried it for ubuntu as well?


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#10 2012-02-24 16:37:57

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Bump


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#11 2012-02-24 17:11:06

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Coolness! How does it connect with Scratch?


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#12 2012-02-24 19:22:23

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

elfin8er wrote:

bendad wrote:

I've always been interested in this, but I have a mac. Has anybody tried this with DarwiinRemote? (A mac version of glovepie).

Has anyone tried it for ubuntu as well?

I tried wminput and played Minecraft with it a while ago. I don't really like doing it on Ubuntu any more because sometimes when I plug my Bluetooth adapter in, I get a black screen with a panic error.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#13 2012-02-24 21:38:36

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

nathanprocks wrote:

elfin8er wrote:

bendad wrote:

I've always been interested in this, but I have a mac. Has anybody tried this with DarwiinRemote? (A mac version of glovepie).

Has anyone tried it for ubuntu as well?

I tried wminput and played Minecraft with it a while ago. I don't really like doing it on Ubuntu any more because sometimes when I plug my Bluetooth adapter in, I get a black screen with a panic error.

I haven't even been able to find a program. Just things that do specific programs. Not glovepie it's self.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#14 2012-02-24 21:40:56

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

technoboy10 wrote:

Coolness! How does it connect with Scratch?

Do some kind of script like:

when space pressed
move 10 steps
and then in glove pie, you'd just make it so when you hit the A button on the wiimote, it emulates the space bar on your keyboard.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#15 2012-02-25 03:14:07

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

elfin8er wrote:

technoboy10 wrote:

Coolness! How does it connect with Scratch?

Do some kind of script like:

when space pressed
move 10 steps
and then in glove pie, you'd just make it so when you hit the A button on the wiimote, it emulates the space bar on your keyboard.

I think you can also control Scratch with the Kinect with GlovePIE.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#16 2012-02-25 07:29:28

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

bendad wrote:

I've always been interested in this, but I have a mac. Has anybody tried this with DarwiinRemote? (A mac version of glovepie).

Me. The IR sensor is sorta flickery and the whole thing's way too unreliable to work with Scratch.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#17 2012-02-29 16:35:20

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Hmm. I'm having some trouble here. I used to be able to do this very well, but now by wiimote wont stay connect, or will fail completely. Any suggestions?


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#18 2012-03-01 00:35:04

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

elfin8er wrote:

Hmm. I'm having some trouble here. I used to be able to do this very well, but now by wiimote wont stay connect, or will fail completely. Any suggestions?

Weird... It works fine for me.

Controlling your computer with a Wiimote and Kinect... What next? PS Vita? Lol controlling it with a PS Vita would be cool!


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#19 2012-03-27 13:06:47

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Is it free?


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#20 2012-04-23 16:12:23

FlashBits
Scratcher
Registered: 2012-02-25
Posts: 3

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Can you provide directions on how to connect the Wiimote to the Glovepie emulator and connect the emulator to Scratch? Any kind of directions, as long as it's CLEAR and it WORKS. Please reply soon and thanks!

Offline

 

#21 2012-06-29 15:49:30

Mr_Roboman4321
New Scratcher
Registered: 2012-01-10
Posts: 1

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

I've made my own script to do most of the controls you would need for minecraft:

wiimote.Leds = 5
Key.w = Wiimote1.Right
Key.Escape = Wiimote1.Home
Key.a = Wiimote1.Up
Key.s = Wiimote1.Left
Key.d = Wiimote1.Down
Key.e = Wiimote.A
Key.t = Wiimote.One
Key.BackSpace = Wiimote1.minus
Key.LShift = Wiimote1.B
Key.Space = Wiimote1.Two
Mouse.RightButton = Wiimote1.Nunchuk.ZButton
Mouse.LeftButton = Wiimote1.Nunchuk.CButton
Key.Enter = Wiimote.plus

I'm a noob and I don't know how to do the official HTML for the code, so there it is.

Offline

 

#22 2012-06-29 16:29:57

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

Mr_Roboman4321 wrote:

I've made my own script to do most of the controls you would need for minecraft:

wiimote.Leds = 5
Key.w = Wiimote1.Right
Key.Escape = Wiimote1.Home
Key.a = Wiimote1.Up
Key.s = Wiimote1.Left
Key.d = Wiimote1.Down
Key.e = Wiimote.A
Key.t = Wiimote.One
Key.BackSpace = Wiimote1.minus
Key.LShift = Wiimote1.B
Key.Space = Wiimote1.Two
Mouse.RightButton = Wiimote1.Nunchuk.ZButton
Mouse.LeftButton = Wiimote1.Nunchuk.CButton
Key.Enter = Wiimote.plus

I'm a noob and I don't know how to do the official HTML for the code, so there it is.

You mean bbcode? That's kind of cool what you have there. I made one a bit ago that made it so you could use the nunchuck to look around, the keypad on the wiimote to move, and you could even shake the nunchuck, like a pick, to harvest/mine.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#23 2012-07-01 22:46:31

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

elfin8er wrote:

Mr_Roboman4321 wrote:

I've made my own script to do most of the controls you would need for minecraft:

wiimote.Leds = 5
Key.w = Wiimote1.Right
Key.Escape = Wiimote1.Home
Key.a = Wiimote1.Up
Key.s = Wiimote1.Left
Key.d = Wiimote1.Down
Key.e = Wiimote.A
Key.t = Wiimote.One
Key.BackSpace = Wiimote1.minus
Key.LShift = Wiimote1.B
Key.Space = Wiimote1.Two
Mouse.RightButton = Wiimote1.Nunchuk.ZButton
Mouse.LeftButton = Wiimote1.Nunchuk.CButton
Key.Enter = Wiimote.plus

I'm a noob and I don't know how to do the official HTML for the code, so there it is.

You mean bbcode? That's kind of cool what you have there. I made one a bit ago that made it so you could use the nunchuck to look around, the keypad on the wiimote to move, and you could even shake the nunchuck, like a pick, to harvest/mine.

Cool... Can I have the script?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#24 2012-07-20 19:17:02

cau2134
Scratcher
Registered: 2011-10-22
Posts: 29

Re: Controlling Scratch With A Wiimote (Official Glovepie Discussion)

rabbit1131 wrote:

Minecraft on the wiimote  yikes
Epicness.

I know that's what i'm trying to do right now


http://mag.racked.eu/cimage/i9002/Achievement+get%21/I.39.m+watching+you%21/mca.png

Offline

 

Board footer