How do I use mobile tilt (beta/gamma) with landscape?

Get help using Construct 2

Post » Mon Jun 20, 2016 9:14 pm

I managed to get tilt working properly (sort of) with portrait orientation. But when it comes to landscape the angles are constantly switching. Is there a formula that can be used to normalize the angles to simply read the the left to right tilt holding the phone as a landscape view? I know it's to do with the orientation limits (-90 to 90, 0 - 180, 0 - 360). The relationship between each of the angles is beyond me.

Here are the events i'm using for portrait tilt.
Image
B
13
S
4
Posts: 61
Reputation: 1,028

Post » Tue Jun 21, 2016 12:56 am

I think I got it figured out. Here is my solution:

Image
B
13
S
4
Posts: 61
Reputation: 1,028

Post » Tue Jun 21, 2016 4:52 am

Image
B
13
S
4
Posts: 61
Reputation: 1,028

Post » Fri Apr 21, 2017 9:11 pm

Hi there.
did you solve your problem? I'm having the exact same problem and it' s driving me nuts. If you did,could you post a CAPX with the solution? A simple explanation would be nice too, i just need to make this work :|
B
5
S
1
Posts: 4
Reputation: 333


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, newt and 25 guests