[SOLVED] Accelerometer question

0 favourites
  • 3 posts
From the Asset Store
Logo Quiz with 150 prepared logos and answers, automatic question and answer mixing
  • Hello, I'm sorry if I'm wrong place.

    I wanna ask, how to capture the accelerometer/gravity sensor from a device (like android devices or windows 8 tablet devices) and move an object in accordance with the accelerometer/gravity sensor?

    The 'infinite jumping' template in the start dialog is controlled by tilt and I've tried it on my android phone. But I want when I tilt my phone about 20-40degree the character move to left/right is not too fast/slowly, and when I tilt my phone about 40-90++ degree the character will move fastly, so the character move's speed to left/right is syncronized with the tilt degree.

    Like the Stone Series games listed in this thread

    construct.net/en

    Thank you and sorry for my bad english :D

    _______________________________________________________________________

    _______________________________________________________________________

    Edit:

    I've found how to implement that on construct

    <img src="http://s20.postimg.org/p80nz4c71/upl.jpg" border="0" />

    And I learn it from this thread

    construct.net/en

  • Thank you all :D

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello... ahmadnbl Do you have the CAPX of this?

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