by makslane » Wed Jul 21, 2010 6:35 pm
Use the getAccelerometer function to get the value from the accelerometer (on the desktop get the joystick axis values).
Declaration:
- Code: Select all
Vector getAccelerometer()
The Vector is a struct with the follow members:
x: -1.0 to 1.0
y: -1.0 to 1.0
z: -1.0 to 1.0
Syntax:
- Code: Select all
Vector v = getAccelerometer();
x = v.x;
Game Editor is an
open source game creator software that's wants to
pay it's developers to keep evolving.
If you like Game Editor, make a
review!