| View previous topic :: View next topic |
| Author |
Message |
chris
Joined: 02 Jan 2007 Posts: 6
Digg It |
Posted: Sat Jan 06, 2007 1:49 pm Post subject: arrays / multiple Wii Remotes |
|
|
Is it possible to use arrays in Glove Pie??
At the moment, to code for multiple wii remotes you must do this:
var.1pitch = Wiimote1.Pitch
var.2pitch = Wiimote2.Pitch
var.3pitch = Wiimote3.Pitch
var.4pitch = Wiimote4.Pitch
instead it would be better to do (well cleaner code)
var.pitch[var.counter] = Wiimote[var.counter].Pitch
var.counter++
Is this possible? Thanks. _________________ http://www.flickr.com/photos/pixelsumo/tags/wii/
http://www.youtube.com/profile?user=pixelsumo |
|
| Back to top |
|
 |
CarlKenner Site Admin
Joined: 29 Nov 2006 Posts: 614
Digg It |
Posted: Sat Jan 06, 2007 3:26 pm Post subject: |
|
|
No it isn't possible.
Although variable names that begin with a digit (var.1pitch) are now possible in GlovePIE 0.29. |
|
| Back to top |
|
 |
chris
Joined: 02 Jan 2007 Posts: 6
Digg It |
|
| Back to top |
|
 |
|