animation+accelerometer
Posted: Tue Sep 20, 2011 11:27 pm
ok i have the accelerometer function working so i can tilt to move my character left and right. the only problem is that i can't get him to animate while he is running in a certain direction. my code for the man moving is
can anyone help?
- Code: Select all
Vector v = getAccelerometer();
xvelocity = v.y * -70;
can anyone help?