Responsive Accelerator Movement
As mentioned above, I need a way to control my actor with the accelerometer smoothly and responsively. Just to make things clear, I know how to use the accelerometer, I just need a better solution.
I've tried move, it works responsively (great!) but it's very very jerky. I mean you can't go in circles with it. It only goes up, down, left, right, AND diagonally up, down, left, right (I mean 45 degrees, like a diamond shape and not circle)
I've tried accelerate, very smooth but bad response! There's always a bit of lag (0.5 seconds or more) before the actor changes to the other direction. I even tried a speed of 2000! And yes my accelerometer is only 0.1 apart (-0.05, 0.05) for each axis.
I'm trying interpolate now but already after 5 times publishing to test on my device (I can't get GSviewer to work) it's not very promising.
HELP!!!!!!!
I've tried move, it works responsively (great!) but it's very very jerky. I mean you can't go in circles with it. It only goes up, down, left, right, AND diagonally up, down, left, right (I mean 45 degrees, like a diamond shape and not circle)
I've tried accelerate, very smooth but bad response! There's always a bit of lag (0.5 seconds or more) before the actor changes to the other direction. I even tried a speed of 2000! And yes my accelerometer is only 0.1 apart (-0.05, 0.05) for each axis.
I'm trying interpolate now but already after 5 times publishing to test on my device (I can't get GSviewer to work) it's not very promising.
HELP!!!!!!!
Comments
constrain attribute self position x to self position x-(game.accelerometer.y*17)
constrain attribute self position y to self position y+((min(.5,max(-.5,(game.accelerometer.x))))*17)