Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

accelerometer help

zombotszombots Posts: 186Member
does any one know how i can make an actor move faster the more the phone is tilited?


  • CodeMonkeyCodeMonkey Posts: 1,803Head Chef, Member, PRO
    multiply the accelerometer value by some constant.
  • AtlantenAtlanten Posts: 56Member, PRO
    Try constraining the linear velocity to the accelerometer value.

    Constrain attribute: (self.Motion.Linear Velocity.X) = (game.Accelerometer.Y)*500

    The accelerometer outputs a very small number. That's why it's multiplied by 500 here. Change 500 to whatever suits you.
  • zombotszombots Posts: 186Member
    awesome that works, thanks heaps both of you:)
This discussion has been closed.