X Acceleration Tilt & Gamma Orientation Problems

Bugs will be moved here once resolved.

Post » Fri Feb 19, 2016 6:31 pm

Problem Description
This thread is in continuation of my recent post viewtopic.php?f=146&t=168777&p=1016256#p1016256 posted in General Construct 2 section. I decided to post it here on the bugs section because now I believe that it is a C2 issue.

I am developing an endless jumper and I need to implement Tilt controls (like in Doodle Jump) in order to move the player left or right.

I realized that the best method to do this, is by using “acceleration X with gravity”. The result was great and it worked fine with my mobile and with some other mobiles as well.

However the feedback from other mobile users was not so great. The acceleration X was always at 0 (zero) for them and the player did not move at all. I told all of my testers to try Doodle Jump, so I can check if it is a problem of their device and their feedback was that Doodle Jump tilt works fine on their device.

Right now the devices I can confirm about X Acceleration (with gravity) are:

Working: Motorola Moto G 3rd Gen, Motorola Moto G 1st Gen, Alcatel C7 Pop

Not Working: Motorola Moto E 1st Gen, THL T6 Pro

About the Gamma Orientation I have found this link: http://www.sizzle-games.com/Tilt/ which is a Construct 2 example with Gamma Orientation. Now it is clear that the problem is from Construct 2 regarding the Gamma Orientation. If you watch the Gamma values and try to lift up your mobile facing you (in 90 degrees) like a desktop monitor, then the values are unpredictable. The result was the same in every apk that I have tested and in every device.

Thank you in advance.

Attach a Capx
Not needed, you can reproduce it with the original C2 Infinite jumper Template as well.

Description of Capx
-

Steps to Reproduce Bug
Just try it

Observed Result
- Gamma Orientation give unpredictable values if the device is faced on 90 degrees.
- Acceleration X (with gravity) is not working on all mobile devices

Expected Result
- Gamma Orientation should give the right values if faced on 90 degrees.
- Acceleration X should work on all devices with accelerometer.

Affected Browsers
-

Operating System and Service Pack
Windows 7 Ultimate (64-bit), Service Pack 1

Construct 2 Version ID
Release 221(64bit)
B
12
S
3
Posts: 19
Reputation: 755

Post » Mon Feb 22, 2016 9:14 pm

Bumping..
B
12
S
3
Posts: 19
Reputation: 755

Post » Fri Feb 26, 2016 8:43 pm

I am interested in a fix for this also. My game is nearly complete and have been using this method on my Android device with the same issue of control. You can play the game if you hold the device in an expected manor, but under the same conditions reported by exalted, the control goes awry at those angles.
My Games on google play

ImageImage
B
31
S
6
G
4
Posts: 97
Reputation: 3,099

Post » Tue Mar 22, 2016 3:09 pm

The devices you mentioned lack the hardware sensors to report those values! It's not a bug, there is no way it can work if the device is lacking the sensor.
Scirra Founder
B
395
S
232
G
88
Posts: 24,367
Reputation: 193,744

Post » Sun Mar 27, 2016 4:29 am

Ashley wrote:The devices you mentioned lack the hardware sensors to report those values! It's not a bug, there is no way it can work if the device is lacking the sensor.


I made a post with my observation on devices that have the sensor, I have a galaxy note 4
https://www.scirra.com/forum/x-acceleration-tilt-is-not-working-in-all-mobile-devices_p1016010?#p1016010

The issue is forward and backward tilts influence left and right at polar angles even though I'm not ref forw/backw in construct.
My Games on google play

ImageImage
B
31
S
6
G
4
Posts: 97
Reputation: 3,099


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests