How to keep an actor pointing down...

SpinningnutmegSpinningnutmeg Member Posts: 107
edited November -1 in Working with GS (Mac)
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...

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    Down would be 270.

    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.
Sign In or Register to comment.