How to get motion control values from iPad ?

Get help using Construct 2

Post » Tue Apr 17, 2012 9:16 pm

Sorry for reply late , I have forget to login here for a long time.
Now I have use the latest version (r87) of Construct 2 and make some upgrade for the sample :

or access by QR code

And you can get the capx here:

Hope those files are helpful for you :)hayato2012-04-17 21:56:17
Posts: 13
Reputation: 5,424

Post » Tue Aug 14, 2012 12:21 am

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!
Posts: 2
Reputation: 354

Post » Tue Aug 14, 2012 12:27 am

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?
Posts: 2
Reputation: 354


Return to How do I....?

Who is online

Users browsing this forum: Energiun, kathleen, tomi71, YoHoho and 31 guests