0 Favourites

How do I Create a pedometer using touch.acceleration?

  • I've experimented a few times and from what I've read it's totally possible to create one if you know how to calculate the three inputs and adjust for orientation and gravity. The only thing is the math I saw was WAAAY over my head.

    but I figure if C2 has the same access to the same data then it should be possible right?

    Anyone have any ideas? Here is the website I was reading about the math that goes into it

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • It is definitely possible, but you will probably have to find and integrate an outside library.

    Some other folks in the computer world have tried:

  • Interesting.

    There are many pedometers algorithms out there, they basically take in the accelerometer values, find any patterns and add steps

    I would give it a jab although I don't have access to ny PC right now, if this question doesn't get answered tommorow, I'll give it a go.

    Edit: I did some digging around, it seems that implementing a pedometet yourself would be a huge headache, you'd need data, so that means plotting graphs of accelerometer values, finding a pattern for steps in multiple conditions and designing an algorithm around that data pattern. Waste of time. The best you can do is basically write a plugin around a popular js pedometer library and hope for the best

  • Yea, you just have to build the plugin framework around the JavaScript library.

    If you do that please publish it for other Construct users to make use of. You can even save it on a Github to open source it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)