beest's Forum Posts

  • 2 posts
  • Also, I've been wondering how I could calibrate the accelerometer because people hold their devices in varying ways. My AccelerationYwithG doesn't need to be calibrated, but my XwithG does.

    I've tried storing a global variable called AccelXCali set to XwithG at start, then adjusting my comparisons according to that value, but I get weird values for AccelXCali. Sometimes it's 0.9..., others it's 0, and once it was like 300k. Obviously not much of a calibration. Am I checking the accelerometer too early?

    Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • hayato, I signed up on these forums just so I could say thank you! I was wondering how I could use the accelerometer in my driving game but never knew how to get the Touch.Accelerometer variables. Thanks for showing me how to do it! <img src="smileys/smiley32.gif" border="0" align="middle" />

  • 2 posts