How to keep an actor pointing down...
I have an AWESOME game idea but i can't get this right...
If you look at "Burn the Rope" on the AppStore it always knows where the ground is.
does anyone know if that is with the gyro or the accelerometer...
If you look at "Burn the Rope" on the AppStore it always knows where the ground is.
does anyone know if that is with the gyro or the accelerometer...
Comments
If you want the accelerometers to do the job then update an attribute with this:
(vectorToAngle( game.Accelerometer.X , game.Accelerometer.Y )+90)%360
The +90 is for making landscape the preferred orientation. If you want to do it in portrait, just remove the +90.
Hope that gets you started on your awesome game idea.