Gyroscope, steering with gamma orientation

Get help using Construct 2

Post » Tue Jan 03, 2017 7:28 am

Hi,
I am creating a space ship flying side-scroller -thingy type of game.. First I made the steering with flappybird style. Just control the spaceship with tapping. Then the game is easy to learn, but hard to really control your ship..

Then I tried the gyro function... Did not get it to work properly.

I am trying to steer the ship with the phone, leaning it to right (turning it clockwise) means going down, and rotate left (tirning counter-clockwise) should go up. Sounds right? When I read the manual I think I should use the gamma-orientation.

I have a few questions though. The game is landscape. (Set to landscape in Construct2 and also in Intel XDK, and that works), but the gyroscope degrees are always made for portrait? When I start the game i can get zero degrees for the gamma when holding it portrait. but when I hold the phone in front of me in landscape the gamma goes negative. But okay, I can work with that. BUT, now the gamma do not work for turning left and right any more. Now the gamma works by flipping it back and forth some how.... (I am using a Samsung Galaxy 6S)

Anyone created gyroscope steering that can give some help here?
Possible to default the gyro degrees to landscape instead of portrait?
B
16
S
4
Posts: 85
Reputation: 1,175

Return to How do I....?

Who is online

Users browsing this forum: MadSpy and 6 guests