Orientation/Tilt Feature Not working in all mobile devices?

0 favourites
  • 5 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • hi guys,

    i have been working on a game for a while now, it requires tilting detection (orientation check) and it is working fine on one device (sony xperia XA) while it is not detected on other (Micromax Canvas 1),

    At first i thought that the device may not have orientation detection but then i tried some other tilt games available in play store on the device and they all are working fine.

    I am wondering what could be the problem then?...

  • I looked up the specs for a Micromax Canvas 1 and it doesn't look like it has a gyroscope sensor. So it lacks the hardware to detect tilt.

    I think some apps can fall back to using the accelerometer but AFAIK not all apps or browsers do this.

  • Ashley

    But i just checked and games like doodle jump & temple run are working fine on micromax canvas 1

    while i also searched internet to find whether they use accelerometer or gyroscope and everyone is saying that they use gyroscope and not an accelerometer.

    what should i do then to make my game work on every device like temple run? ....is accelerometer my last option then?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Accelerometer and gyroscope plugs default to zero, so you can add events for both of them as well as touch controls based on that value.

    A great many lower end models do not have gyroscopes, almost all smartphones have an accelerometer.

    The response for the x, and y axis of the features is identical.

  • i will check for which one is supported on the device and then activate groups accordingly.

    Thank you everyone!

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