Has anyone got device orientation working?

Get help using Construct 2

Post » Tue Oct 08, 2013 12:48 pm

I am making a jumper game that needs tilt to control.

Unfortunately, it doesnt seem to work correctly.

Anyone has an example or has already done this properly?


Kindly extend help :)
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,662

Post » Tue Oct 08, 2013 12:50 pm

On what platform are you looking to get the accelerometer working?
Moderator
B
72
S
14
G
11
Posts: 900
Reputation: 11,930

Post » Tue Oct 08, 2013 1:01 pm

Android primarily.
iOS, windows and BB would be nice though.
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,662

Post » Tue Oct 08, 2013 1:06 pm

It works, it's just that every platform reports its orientation differently (axes flipped or 90 degree rotated, depending on what it is), that's a bit of a bummer.

B
77
S
28
G
32
Posts: 481
Reputation: 19,763

Post » Wed Oct 09, 2013 1:09 pm

since the values change everytime the player shifts his position (sitting, sleeping) in the middle of the game... so we're needed to calculate new median point everytime.

Is there a better way?
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,662


Return to How do I....?

Who is online

Users browsing this forum: mcscooter, TRMG and 30 guests