Step 15Set Up A Computer with a Script
like us to do it.
1. Download GlovePie from http://carl.kenner.googlepages.com/glovepie_download and install it
2. Download the GlovePie script we wrote off of this instructable.
3. Go to File/Open in GlovePie, select the TreadmillControl.PIE script you just downloaded.
4. Click Run
Now the forward movement of the treadmill will be seen by the computer as tapping on the 'w' key, and the joystick will simulate the 'a' (left) and 'd' (right).
**Read below only if you need to use other keys than the ones for most movement in games (WASD setup).
If you need the treadmill to tap a different key besides 'w', all you need to do is replace the variable "key.a" with "key.whateverLetterYouWant" for example, if you wanted
to tap on the 'r' key instead of 'w', just change "key.a" to "key.r." I told you it was easy!
Here are the lines that control forward movement and left and right. These will allow you to customize the script.
key.a = var.keya
key.d = var.keyd
key.w= var.moveit
The second part of the script you might want to customize is how fast you need to run for your character to run at full speed. All you need to do to change that is alter the
numbers in the lines of the script that look like:
if var.speed >= 15 then
Just set the 15 to a lower number, and it will be easier to make your character run full speed.
*You can download our script here. When saving, if the file saves as .tmp, simply rename the extension to .PIE
| « Previous Step | Download PDFView All Steps | Next Step » |
3
comments
|
Add Comment
|
![]() |
Add Comment
|




















































